cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Timeout & crash Issue

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 23 Mar 2004 08:14:22 +0100 (CET)

On Mon, 22 Mar 2004 Gunn_Fergal_at_emc.com wrote:

> What we are trying to do is set up a https request to a service which should
> respond promptly. What we are seeing though is that intermittently the
> response does not come back and the code is blocked waiting for the service
> to return. It was my understanding that when using the
> "curl_easy_setopt(curl,CURLOPT_TIMEOUT,300);" setting that the
> curl_easy_perform would be interrupted and the code could continue, after 5
> mins in the above code (300 seconds).

That is a correct interpretation indeed. If curl_easy_perform() doesn't return
after 300 seconds there's a bug in there!

At the time when curl "hangs", can you run an strace on the process or
possibly connect a debugger to it and see exactly what it is doing at the
time? You could possibly also use CURLOPT_DEBUGFUNCTION to get some clues
about where in the process the operation is when it hangs.

Also, I wrote this in a previous reply that you didn't respond to:

Have you tried any more recent versions? We have released no more than 5
updates, and probably solved 100+ bugs since.

Also, what OS are you running this on? Did you build it yourself?

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-23