cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl segmentation fault when curl_easy_cleanup

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 1 Dec 2009 11:06:40 +0100 (CET)

On Tue, 1 Dec 2009, Shrek Qian wrote:

> I knew basic rule is that you must never share a libcurl handle (be it easy
> or multi or whatever) between multiple threads. But I think if we required
> to terminated all connections in one thread to invoke cleanup is reasonable,
> and the existed code is hard to modify. Do you have any suggestion about the
> core and potential fix?

You're on the wrong mailing list. Use curl-library for libcurl stuff.

So you're saying you know about the rule, but you still violate it and now you
ask us how to deal with it?

My advice: don't share handles between threads, as documented.

-- 
  / 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.html
Received on 2009-12-01