Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  Possible bug in inets http:request?

Guest
Posted: Sat Sep 16, 2006 10:51 pm Reply with quote
Guest
(Posted this to erlang-questions first by mistake, sorry for crossposting.)

I'm using inets http:request to construct REST calls to a web service and noticed some odd behaviour which boiled down to this:

When the response contains nothing, ie. complete headers, but a zero-length body, the function hangs for some time. To try it out:

http:request("http://combubo.com/test.txt").

The call returns after ~ 15 seconds. Other servers take minutes to break the connection.

I located this in httpc_response.erl:

whole_body(Body, Length) ->

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum