cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl hangs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 17 Sep 2003 12:41:44 +0200 (CEST)

On Tue, 16 Sep 2003, Stephen W Boyd wrote:

> I have an application that communicates with a server using libcurl over an
> HTTP connection. On occasion the server appears to stop responding. At
> this point my app hangs in a call to curl_easy_perform(). I have set the
> CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT values to 300 but no timeout ever
> occurs (even after hours of waiting). I am using libcurl 7.10.3.
>
> Any suggestions?

Only rather complicated ones:

First, upgrade to a newer libcurl to see if that changes anything.

Then, I would suggest that you figure out what libcurl is doing when it
"hangs". You can for example 'strace' the pid of your app, or you can attach
gdb to the running process and break control-c. The latter is of course a lot
more useful if you've built libcurl with debug enabled.

If this doesn't work or can't be done, things get even harder. Then I would
prefer if you could make a smaller test program show the same problems so that
you then can post the full source of that program to this list.

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-17