cURL / Mailing Lists / curl-library / Single Mail

curl-library

Is CURL struct thread-safe?

From: Jonathan Wallace <jwallace_at_livetechnology.com>
Date: Tue, 8 Dec 2009 16:44:52 -0500

I may occasionally have 4-10 threads all using the same CURL instance. Can I do this, or will it screw something up?

Each thread might give it a different address, headers, cookies... If I set a header on a CURL instance using curl_easy_opt, while the same CURL struct is in use (fetching, or being set up by another thread) is it safe, or will that cause problems?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-08