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 13:19:44 +0100 (CET)

On Tue, 23 Mar 2004 Gunn_Fergal_at_emc.com wrote:

> My OS version is Windows 2000 Pro

Ah, then I guess my strace/gdb suggestions were in vain. I have no idea if or
how you can figure out what a hanging process is doing on Windows.

> The problem is very hard to reproduce, therefore debug, as it is dependent
> on another service, I have no control over, not behaving correctly. I am
> going to try and dummy a timeout by putting looping code or a wait in the
> curl_write_hook() method.

If the code "hangs" in a callback called from libcurl, then libcurl won't
timeout properly. It only times out its own operations.

> Will curl_easy_perform return after "timeout" seconds if it is in a wait or
> looping?

The CURLOPT_TIMEOUT is unconditional and should return after the given time no
matter what it is currently doing.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-03-23