curl-library
RE: libcurl failures at a multi-threading application
Date: Mon, 5 Sep 2011 22:44:30 +0200 (CEST)
On Mon, 5 Sep 2011, Yamin Zhou wrote:
>> If you're using a recent libcurl I'm not aware of any such flaws or
>> limitations.
> I'm using 7.20.0.
A bit old by now but it is probably fine.
>> I trust you're doing curl_global_init() before all threads start and if
>> you're using HTTPS you use the SSL library's mutex callbacks.
> But besides curl worker threads, there are some other threads using SSL, and
> in those threads curl_easy_escape, only this curl API, is called. Problem in
> there?
Let me repeat: use the SSL library's mutex callbacks. It seems to me that
you're not using them:
http://curl.haxx.se/docs/faq.html#Is_libcurl_thread_safe
Inspiration to the actual implementations can be found in this example:
http://curl.haxx.se/libcurl/c/threaded-ssl.html
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-05