cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_perform

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sun, 18 Jul 2004 09:30:40 +0200 (CEST)

On Sat, 17 Jul 2004, Karl wrote:

> When using threads and libcurl, if one thread is running curl_easy_perform
> and for whatever reason that takes some time (say host not responding), can
> another thread terminate that attempt

No. But a thread can signal the other thread and then you can make your
callback(s) return to abort the transfer. It will at least make the transfer
stop as soon as possible.

> , or do we have to wait for the perform to fail.

Return the proper code from your callback and it'll stop.

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