cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl crash at Curl_ossl_close function call

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 17 Feb 2009 16:05:14 +0100 (CET)

On Tue, 17 Feb 2009, Sandeep Kale wrote:

> One Question: I have made sure that every connection is specific to a thread
> and even curl handle is not shared across threads. Shouldn't this help in
> avoiding use of SSL in multi-threaded way?

I'm not sure how OpenSSL works in this aspect so I can't really tell.

> It will be great if I get a sample which shows how to use OpenSSL mutex
> callbacks.

Sure:

         http://curl.haxx.se/lxr/source/docs/examples/threaded-ssl.c

-- 
  / daniel.haxx.se
Received on 2009-02-17