[erlang-bugs] httpc keep-alive bug

Ingela Anderton Andin <>
Fri Jan 31 17:45:07 CET 2014


Hi!

Could you check if this is a problem even in the latest version, 
inets-5.9.8? The code handling this has been changed since inets-5.9.5.

Regards Ingela Erlang/OTP team - Ericsson AB


On 01/30/2014 12:14 PM, jan_kowalski6669 wrote:
> Hi,
>
> Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]
>
> ls /usr/lib/erlang/lib/ | grep inets
> inets-5.9.5
>
> W dniu 2014-01-30 12:01:45 użytkownik Ingela Anderton Andin <> napisał:
>> Hi!
>>
>> Please state what version of inets application that you are using.
>>
>> Regards Ingela Erlang/OTP team - Ericsson AB
>>
>>
>> On 01/30/2014 11:04 AM, jan_kowalski6669 wrote:
>>> I have function:
>>> some_function(Url, Cookie, Command, Command2) ->
>>> httpc:request(post, {Url, [{"Cookie", Cookie}], "text/xml", Command},
>>> [], [{socket_opts, [{keepalive, true}]}]),
>>> httpc:request(post, {Url, [{"Cookie", Cookie}], "text/xml", Command2},
>>> [], [{socket_opts, [{keepalive, true}]}]).
>>> which sends two request to same Url with different command, one after
>>> another.
>>> Screenshot from wireshark: http://tinypic.com/view.php?pic=9s8m03&s=8
>>> As you can see, in last call of some_function, first request is ok, but
>>> second is send to nowhere, and i got no response because first result
>>> was without keep-alive header, so second request should open new
>>> connection, but it didn't
>>>
>>>
>>> _______________________________________________
>>> erlang-bugs mailing list
>>> 
>>> http://erlang.org/mailman/listinfo/erlang-bugs
>>>
>>
>>
>
>
>



More information about the erlang-bugs mailing list