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 12:14:24 +0000

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.

But searched the curl source code and curl sockets don't seem to set this
option.

can i ask why is the reason for not setting this option?

thx

On 12/15/05, lostsandman <lostsandman_at_gmail.com> wrote:
>
> Hello,
>
> I have been using libcurl to do ftp in my application without nay
> problems.
>
> but recently i am having few problems i think due to network issues but
> not sure ...
>
> I get lots of failed to connects, timeouts and failed to get data from
> peer errors.
> Most of the time my app recovers from this and try to download the files.
>
> But sometimes it doesn't and hangs when trying get list of files on the
> server or download a file . it looks like the curl_easy_perform never
> returns.
>
> So i am wondering are there any circumstance that might cause
> curl_easy_perform to get stuck?
>
> The application runs on windows.
>
> Thanks
>
Received on 2005-12-16