cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl, network problems and getting stuck.

From: lostsandman <lostsandman_at_gmail.com>
Date: Fri, 16 Dec 2005 15:54:59 +0000

>I don't see how that is related to your problem.

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

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

I am not saying this is the problem but a tiny possibility

On 12/16/05, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Fri, 16 Dec 2005, lostsandman wrote:
>
> > While looking into this problem i came cross the socket option
> SO_KEEPALIVE.
> > i was told to change the default time of 2 hours to something less.
>
> I don't see how that is related to your problem.
>
> > But searched the curl source code and curl sockets don't seem to set
> this
> > option.
>
> Nope. And even if we did, what good what it do you?
>
> > can i ask why is the reason for not setting this option?
>
> The reason is simply that no one ever needed it or added it.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2005-12-16