cURL / Mailing Lists / curl-library / Single Mail


Is the callback specified in CURLOPT_WRITEFUNCTION thread-safe?

From: Ajay Garg <>
Date: Tue, 1 Jul 2014 21:14:24 +0530

Hi all.

Is it safe to pass the same callback-function as the parameter to
CURLOPT_WRITEFUNCTION in different threads?
Note that the threads may be highly concurrent, sending and receiving
requests/responses simultaneously.

Or we run the risk of mixing up received-data (in different threads)?

Thanks in advance... :)

Thanks and Regards,

List admin:
Received on 2014-07-01