## 1 Inets Release Notes

### 1.1 Inets 4.5

#### 1.1.1 Fixed Bugs and Malfunctions

- The internal design of using blocking gen_tcp:recv with a timeout and retries resulted in code that was hard to get a good overview of, and ultimate led to situations where the client got the wrong answer or no answer at all. The errors where many times very timing dependent and mainly effected the chunk-related functions, so if you where lucky you proably would not have noticed. The internal design was changed to use gen_tcp active once semantics. The API is not effected except for the function ftp:quote/2 which now returns a list of strings (ftp result lines) where the line endings "\r\n" has been removed. This was the original intention for the return value of ftp:quote/2 but it was non trivial to make a good such solution with the old design and a compromise was made.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5623
- The new implementation of pipelining in inets-4.1 alas was slightly broken and unfortunately not caught by the test suite that apparently needs some additions. The result was that requests that ought to have been pipelined where not, this has now been fixed.
  Own Id: OTP-5624
- When using the latest esi interface with the callback interface of arity 3, HTTP Content-Type headers where ignored, this due to a subtle difference between this interface and the old one in how they viewed HTTP delimiters.
  Own Id: OTP-5627

#### 1.1.2 Improvements and New Features

- The HTTP server now supports ipv6 in the case that the underlying mechanisms also do so. (ssl does not yet support ipv6.)
  Own Id: OTP-5141
- The FTP client now supports ipv6 in the case that the underlying mechanisms also do so.
  Own Id: OTP-5142
- An option was added to disable the ipv6 support in the HTTP client. This to provide a workaround possibility for buggy ipv6-stacks.
  Own Id: OTP-5625 Aux Id: seq9872
- When generating dynamic HTTP response bodies the the default content-type is now set to "text/html" instead of "text/plain" which is more intuitive.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5626

### 1.2 Inets 4.4.1

#### 1.2.1 Fixed Bugs and Malfunctions

- Wrapper function http_transport:accept/3 did error-handling that it should not do because only the caller of the wrapper can determine what action to take. So timeouts where handled twice, once in http_transport and once in httpd_acceptor. Clean up of the wrapper module http_transport changed the action of the wrapper module and made the unwanted behavior noticeable in in OTP error logs. And now the unwanted error handling has been removed. The cleanup helped us find bad code but alas it also generates a lot of log printouts that are quite disturbing to the user of the HTTP-server.
  Own Id: OTP-5549 Aux Id: seq9851
- In the rewrite for 4.4 some mod_esi-environment values where mistaken for ordinary header values and where incorrectly transformed to strings. They are now atoms again.
  Own Id: OTP-5551 Aux Id: seq9854
- The HTTP server now handles "GET /\r\n\r\n" as well as "GET / \r\n\r\n". According to the RFC the whitespace is not nedded.
  Own Id: OTP-5552 Aux Id: seq8426

#### 1.2.2 Improvements and New Features

- The ftp client now supports passive mode. Actually the ftp client will always try to use passive mode and if it fails it will use active mode instead. It is also possible to force the ftp-client to use active mode, if that is desired, by calling ftp:force_active/1 this way you can get the old behavior.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5148

### 1.3 Inets 4.4

#### 1.3.1 Fixed Bugs and Malfunctions

- The server did not handle HTTP-0.9 messages with an implicit version.
  Own Id: OTP-5513
- An internal server timeout killed the request handling process without sending a message back to the client. As this timeout only affects a single request it has been set to infinity (if the main server process dies the request handling process will also die and the client will receive an error). This might make a client that does not use a timeout hang for a longer period of time, but that is an expected behavior!
  Own Id: OTP-5514 Aux Id: seq9806
- That a third party closes the http servers accept socket is recoverable for inets, hence intes will only produce an info report as there was no error in inets but measures where taken to avoid failure due to errors elsewhere.
  Own Id: OTP-5516 Aux Id: seq9806
- The HTTP client proxy settings where ignored. Bug introduced in inets-4.3.
  Own Id: OTP-5517
- Inets only sent the "WWW-Authenticate" header at the first attempt to get a page, if the user supplied the wrong user/password combination the header was not sent again. This forces the user to kill the browser entirely after a failed login attempt, before the user may try to login again. Inets now always send the authentication header.
  Own Id: OTP-5521
- A major rewrite of big parts of the HTTP server code was performed. There where many things that did not work satisfactory. Cgi script handling can never have worked properly and the cases when it did sort of work, a big unnecessary delay was enforced. Headers where not always treated as expected and HTTP version handling did not work, all responses where sent as version HTTP/1.1 no matter what.
  Own Id: OTP-5537

### 1.4 Inets 4.3.1

#### 1.4.1 Fixed Bugs and Malfunctions

- When further testing the functionality of https requests that goes through a proxy. We realised that alas this can not currently be supported as it requires features from the ssl implementation that is not currently available. So for now an error message will be returned when trying to use this functionality.
  Own Id: OTP-5453
- When trying to get a url from a server that does not exist the client hanged instead of returning an error message. Bug introduced in inets-4.3.
  Own Id: OTP-5454

### 1.5 Inets 4.3

#### 1.5.1 Fixed Bugs and Malfunctions

- Tunneling of SSL through a proxy has now been implemented. However due to lack of test sites this has only partially been verified, it is likely that there will have to be future improvments in this area.
  Own Id: OTP-5443

#### 1.5.2 Improvements and New Features

- The pipeline timeout was changed to be zero by default to avoid that people by accident would create connection processes that never dies and eats up the socket resources.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5442
- Altered the way spawn_link is used in mod_esi to avoid getting, in this senario unwanted error reports, from spawn_link. (The behavior of spawn_link was altered in a not backwards compatible way.)
  Own Id: OTP-5444

### 1.6 Inets 4.2.1

#### 1.6.1 Fixed Bugs and Malfunctions

- Sometimes EWS modules where called with an Info record where the peername field was {-1, "unknown"}. This could happen when a client was making a lot of requests which it discards before they where answered by the server. The server now ignores such requests and does not call the EWS modules in this case.
  Own Id: OTP-5380 Aux Id: seq9739
- The HTTP-server now returns the 408 status code upon a request timeout as expected instead of the previous faulty behavior of sending a 500 status code.
  Own Id: OTP-5409
- The content length was put in to the HTTP-headers as an integer instead of as a string.
  Own Id: OTP-5410
- It was wrongly presumed that code:priv_dir would always be writable due to how the test-server works. The directory is now a configuration parameter in the inets-application configuration file. Failing to configure it will result in that all cookies are treated as session cookies.
  Own Id: OTP-5411

#### 1.6.2 Improvements and New Features

- An undocumented beta version of tftp is included.
  Own Id: OTP-5419

### 1.7 Inets 4.2

#### 1.7.1 Fixed Bugs and Malfunctions

- When sending a request through a proxy the absolute URI must be used.
  Own Id: OTP-5368

#### 1.7.2 Improvements and New Features

- Basic support for cookies was implemented. Later some more functions to inspect cookies may be added.
  Own Id: OTP-5331
- A top tftp supervisor was added in preparation for adding a tftp service in a future inets release.
  Own Id: OTP-5379

### 1.8 Inets 4.1

#### 1.8.1 Fixed Bugs and Malfunctions

- The URI check that disables relative links that goes outside the server-root still missed a few cases, in spite of the improvement in OTP-5140.
  Own Id: OTP-5249
- The http client pipelining implementation has been rewritten as the old implementation was too optimistic about when to pipeline. In the process of doing this also the error handling was improved, better clean up is performed when the request handling process terminates and better handling of the case that the httpc_manager process dies and is restarted.
  Own Id: OTP-5303
- Improved handling of status codes 30X and 50X.
  Own Id: OTP-5309

#### 1.8.2 Improvements and New Features

- The inets supervision tree has been reorganized to create a better balance between the inets services. Preferably they should not effect each other. The ftp service has also been included in the inets supervision tree, it was for reasons unknown, not included before.
  Own Id: OTP-5188
- The service concept in inets is now better documented.
  Own Id: OTP-5189
- The inets shutdown times have proven to be too short under some circumstances, as a heavy load, therefore they have been prolonged.
  Own Id: OTP-5261 Aux Id: seq9624
- Options for automatic redirection and pipelining is now available in the http client API.
  Own Id: OTP-5304

### 1.9 Inets 4.0.1

#### 1.9.1 Fixed Bugs and Malfunctions

- A programming error could cause a badmatch in the http client when the http response was chunk decoded.
  Own Id: OTP-5101
- The parsing of HTTP messages was missing a base case. This caused unexpected behavior when the separator CR and LF where received in different tcp packets.
  Own Id: OTP-5239

### 1.10 inets 4.0

#### 1.10.1 Fixed Bugs and Malfunctions

- When receiving a status 100 code, the client should only respond by sending the message body, if the client sent an expect header in the first place. Failing to do so may result in that the server receives the body twice.
  Own Id: OTP-4848
- mod_get now also handles http version HTTP/0.9
  Own Id: OTP-4935 Aux Id: seq8426
- "Last-modified" field was incorrectly set to local time with the tag GMT, it is now corrected so that the time reflected is in fact GMT.
  Own Id: OTP-4936
- The client will only add a host-field to the request if there is not one already present.
  Own Id: OTP-4984
- The 'inets' application tries to be compatible with Apache. To be more compatible the option 'MaxKeepAliveRequest' is renamed 'MaxKeepAliveRequests'. The old name is kept for backward compatibility.
  Own Id: OTP-5024
- Changing the base 64 decoding to not accept invalid input, uncovered a logical error in mod_security.erl An already decoded string was sent as input to decode. In this case, as it so happened, the two errors worked together creating the elution that everthing was right. This has now been corrected.
  Own Id: OTP-5083
- URLs where not properly scrutinised for relative paths. A malicious user could exploit this to read files outside the document root. This is no longer the case.
  Own Id: OTP-5140

#### 1.10.2 Improvements and New Features

- A HTTP 1.1 client is officially included in inets. It is loosely based on the previously unsupported code contributed by Johan Blom. In this first version only the most basic HTTP functionality is supported. The user API has been changed.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5047
- Fixed erroneous link in documentation.
  Own Id: OTP-5089 Aux Id: seq8887
- Added the function quote/2 that lets you send an arbitrary FTP command to the FTP client.
  Own Id: OTP-5099 Aux Id: seq8961
- Started integration of the HTTP client and server code too facilitate maintenance and further development.
  Own Id: OTP-5110
- Due to several possibilities to interpret the ftp standard some newer ftp-servers have interpreted the standard in such a way that the documented return value of ftp:nlist/2 does not always match the actual return value. Some extra checks have now been added to ensure the documented return value. This will also result in that ftp:nlist is not bug compatible in the case that nlist is given a filename instead of a directory it will now return an error instead of {ok, FileName}.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-5165
- Created a Users Guide for Inets. Earlier there where some fake manual pages and information was scattered everywhere and hard to find.
  Own Id: OTP-5180

For information about older versions see release notes history.

Copyright © 1991-2005 Ericsson AB