cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: thread safety.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Jul 2013 23:57:29 +0200 (CEST)

On Wed, 17 Jul 2013, Evgeny Turnaev wrote:

> The page http://curl.haxx.se/libcurl/features.html state: """Never share
> libcurl handles between multiple threads. You should only use one handle in
> one single thread at any given time""" But i feel like curl_easy_getinfo()
> does not modify anyhow easy_handle and thus can be used from other threads
> as long as handle is not processed.

There's no guarantee that it won't modify any part of it (even if that may be
true now and for some specific versions and builds).

You really should only access a single easy handle from a single thread at any
single moment in time.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-18