cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to stop a lengthy operation

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 6 Jan 2004 23:23:54 +0100 (CET)

On Tue, 6 Jan 2004, Adrian Michel wrote:

> What is the "clean" way of disconnecting from the server during this lengthy
> operation, if for example I need to restart the thread (in case some
> parameters have changed such as the list of symbols for which I need quotes)
> or I need to exit the application.

Return an error from a callback: write, read or progress.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Received on 2004-01-06