| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
RE: CLOSE_WAIT and socket options
From: Andrei Tarassov <andrei.tarassov_at_altiris.ee>
Date: Wed, 6 Apr 2005 12:43:18 +0200
I checked on HP-UX 11.00, curl 7.12.3. We use only HTTP and HTTPS. I am
Again, strange as it is, sockets do not get closed on timeout. They are
-----Original Message-----
On Wed, 6 Apr 2005, Andrei Tarassov wrote:
> The situation is that the sockets is hanging in CLOSE_WAIT state for
What OS? Does it happen for all protocols? How many sockets do you get
> If that is the situation, then my understanding is that the connection
> should be closed on the client side as well, at least after some
IIRC, CLOSE_WAIT should normally be two minutes.
> 1. Has anyone encountered the same problem and handled it?
Not me, and I've not seen anyone report this before.
> 2. At what moment curl closes the TCP socket?
It uses many sockets and thus closes them all over. Search the source
complain when running test cases.
> 3. Is there any way to pass custom options to the curl function, which
> creates a socket? I want to try to play with different timeouts a bit.
Nope. There have been talka about adding such a callback that allows the
> 4. Is there any way to switch off the normal tcp connection closing
I don't think you can do that with plain stream sockets. But I'm far
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-06 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info