cURL / Mailing Lists / curl-library / Single Mail


using multi interfaces in different threads

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


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,

List admin:
Received on 2011-02-02