curl-users
Re: Putting a Curl handler into thread-local storage, doesn't seem to work for me
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 1 Dec 2012 22:44:21 +0100 (CET)
Date: Sat, 1 Dec 2012 22:44:21 +0100 (CET)
On Fri, 30 Nov 2012, Fiona Sisk wrote:
> I had trouble with a C multi-threaded application with CURL calls
Since you use the C API, the curl-library list is probably the mailing list
you're looking for! This is for the curl command line tool.
> Eventually, I noticed that the pointer, threadCurlHandle was the same in
> every thread, which definitely was not what I wanted. I believed by using
> thread-local storage, threadCurlHandle, the pointer would be different for
> each Thread.
So have you set the proper SSL mutex callbacks?
> Has anyone tried TLS with CURL before?
Yes many has used it succesfully for over a decade.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-12-01