cURL / Mailing Lists / curl-library / Single Mail

curl-library

Libcurl with non-reentrant gethostbyname - thread safe?

From: Vladimir Grishchenko <vladgri_at_hotmail.com>
Date: Mon, 6 Dec 2010 09:57:07 -0800

Hi,

Libcurl noob here. I'm wondering if it is safe to call libcurl from multiple threads if I were to use the non-reentrant variant of gethostbyname. I looked around and didn't see any guards preventing multiple threads from simultaneously entering gethostbyname in libcurl. I'm planning to use synchronous resolver, at least initially, if that matters. Thanks for any hints.

-Vlad
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-06