|
|
| Author |
Message |
|
| Guest |
Posted: Sat Sep 16, 2006 10:51 pm |
|
|
|
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) ->
|
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|