cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_perform

From: Daniel Stenberg <>
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 -- --
       Dedicated custom curl help for hire:
Received on 2004-07-18