cURL / Mailing Lists / curl-library / Single Mail


Re: Curl, threading and gethostbyname

From: Dan Fandrich <>
Date: Thu, 26 Aug 2010 14:36:23 -0700

On Thu, Aug 26, 2010 at 10:13:44PM +0200, Christian Mauduit wrote:
> Still, bug continues to show :( So I'm asking myself if the problem could
> be that libCurl calls gethostbyname or such function in a separate thread.
> Does that make sense? Not sure, I lock all Curl calls with my mutex.

Are you using the easy or multi interface? Recent versions of libcurl will
spawn a thread to handle host lookups in some configurations. What is the
output of 'curl --version' using your libcurl. Rebuilding libcurl with
c-ares support or --disable-threaded-resolver may help.

>>> Dan
List admin:
Received on 2010-08-26