diff options
author | Péter Dimitrov <[email protected]> | 2018-04-10 16:25:57 +0200 |
---|---|---|
committer | Péter Dimitrov <[email protected]> | 2018-04-12 13:19:45 +0200 |
commit | 1986e3746f495519c04d540683d1b9b78548b870 (patch) | |
tree | a7d8b3cc36e3c703007f51e2707b4c750225ea01 /lib/inets/doc | |
parent | 61bc7c7d1ac9ff621b3125d79ae4a9a3dd6b1622 (diff) | |
download | otp-1986e3746f495519c04d540683d1b9b78548b870.tar.gz otp-1986e3746f495519c04d540683d1b9b78548b870.tar.bz2 otp-1986e3746f495519c04d540683d1b9b78548b870.zip |
inets: Fix broken httpc options handling
- Add support for setting socket options per request.
- Add http_ipv6 test group.
Change-Id: Ia2aca37c0b5fe64a41995c79ae3399434b17ab8a
Diffstat (limited to 'lib/inets/doc')
-rw-r--r-- | lib/inets/doc/src/httpc.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/inets/doc/src/httpc.xml b/lib/inets/doc/src/httpc.xml index befcd83827..1ef93de301 100644 --- a/lib/inets/doc/src/httpc.xml +++ b/lib/inets/doc/src/httpc.xml @@ -450,17 +450,22 @@ <tag><c><![CDATA[socket_opts]]></c></tag> <item> - <p>Socket options to be used for this and subsequent - requests.</p> + <p>Socket options to be used for this request.</p> <p>Overrides any value set by function <seealso marker="#set_options-1">set_options</seealso>.</p> <p>The validity of the options is <em>not</em> checked by the HTTP client they are assumed to be correct and passed on to ssl application and inet driver, which may reject - them if they are not correct. Note that the current - implementation assumes the requests to the same host, port - combination will use the same socket options. + them if they are not correct. </p> + <note> + <p> + Persistent connections are not supported when setting the + <c>socket_opts</c> option. When <c>socket_opts</c> is not + set the current implementation assumes the requests to the + same host, port combination will use the same socket options. + </p> + </note> <p>By default the socket options set by function <seealso marker="#set_options-1">set_options/[1,2]</seealso> @@ -633,8 +638,11 @@ to complete. The HTTP/1.1 specification suggests a limit of two persistent connections per server, which is the default value of option <c>max_sessions</c>.</p> + <p> + The current implementation assumes the requests to the same host, port + combination will use the same socket options. + </p> </note> - <marker id="get_options"></marker> </desc> </func> |