cURL / Mailing Lists / curl-library / Single Mail


Re: multi threads programming

From: Dan Fandrich <>
Date: Fri, 4 Jan 2008 16:15:48 -0800

On Fri, Jan 04, 2008 at 03:47:33PM -0800, Jiang Xu wrote:
> I have two threads. One serves as a work thread and
> the other serves as a control thread. The work thread
> will call curl_multi_perform() to send HTTP requests
> and to receive HTTP responses. The control thread may
> call curl_multi_remove_handle to cancel a specific
> request.

This is not allowed. You may only access a curl handle from within a
single thread.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-01-05