cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: How do I abort curl_easy_perform()?

From: Tom Mattison <tom.mattison_at_econtechnologies.com>
Date: Tue, 11 Jun 2002 09:45:00 -0400

On Tuesday, June 11 2002, Ralph Mitchell wrote:

>
> > I'm using the curl library(V 7.9.6) on OS X in a cocoa application. I
> > need a way to abort the processing of curl_easy_perform(). It appears
that
> > once I call curl_easy_perform() I have no way to stop the action before
> > curl_easy_perform() completes its activities and returns. Does anybody
> > have any ideas that might help me out?
>

> Or possibly have the program fork() and run the curl_easy_perform() in the
child fork while
> the parent process watches for whatever condition you feel warrants
bailing out early...
> Catching the bailout condition and sending a kill signal to the child
process may not be the
> neatest solution, but it seems to fulfill your requirements.

> I'm assuming that cocoa & OS X allow fork and signals - I have no clue
either way... :)

> Ralph Mitchell

I'm already running curl_easy_perform() as part of a worker thread. I kind
of though about killing it off, but am unsure what, if any, the
repercussions might be.

tom.

_______________________
Tom Mattison

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
Received on 2002-06-11