cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: CLOSE_WAIT and socket options
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 6 Apr 2005 12:05:11 +0200 (CEST)
On Wed, 6 Apr 2005, Andrei Tarassov wrote:
> The situation is that the sockets is hanging in CLOSE_WAIT state for hours
What OS? Does it happen for all protocols? How many sockets do you get in
> If that is the situation, then my understanding is that the connection
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 code for
> 3. Is there any way to pass custom options to the curl function, which
Nope. There have been talka about adding such a callback that allows the app
> 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 from
-- 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