cURL / Mailing Lists / curl-library / Single Mail

curl-library

using multi interfaces in different threads

From: Arunkumar Manickam <arun.ccjl_at_gmail.com>
Date: Wed, 2 Feb 2011 12:18:32 +0530

Hi,

Our application is using curl multi interfaces merely so it can have control
over when to perform the http transfer.

For each http transfer a multi handle is created and an easy handle is added
to it. And each http transfer happens in a separate thread which keeps
calling into curl_multi_perform whenever there is something to read/write.
We observe some rare crashes when more than one thread is inside
curl_multi_perform at the same time.

Are the curl multi interface functions re-entrant and thread safe. Is the
application expected to some locking before entering in to multi perform.
Pls help.

Thanks in advance,
Arun

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-02-02