cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl, network problems and getting stuck.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Dec 2005 17:48:23 +0100 (CET)

On Fri, 16 Dec 2005, lostsandman wrote:

> well i think, the client connection is "going" away and curl doesn't finds
> out about it for long time.

Well, a silent connection is not an error in TCP. Use a timeout or set the
lowspeed options.

> So if SO_KEEPALIVE was used then the default value of 2 hours can be reduced
> so curl finds out about the lost connection.

Right, but reducing it to less than two hours can't be done by libcurl itself
so using SO_KEEPALIVE is not really changing much that isn't already possibly
to achieve using the existing options.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-12-16