cURL / Mailing Lists / curl-library / Single Mail


Re: DNS look up will always fail, if thread is started with network cable disconnected.

From: Dan Fandrich <>
Date: Fri, 20 May 2011 12:13:19 -0700

On Fri, May 20, 2011 at 02:02:51PM +0200, Ben Noordhuis wrote:
> On Fri, May 20, 2011 at 10:38, Henrik Heino <> wrote:
> > I'm using libcurl with easy interface in a multithreaded program. The system
> > is FreeBSD and libcurl version is 7.20. I have noticed strange problem in
> > the following case: I boot computer without network cable connected. Then I
> > start my program and it starts some threads. After some time, I fix the
> > network cable problem by connecting it.
> Henrik, does your FreeBSD libcurl use c-ares or libc as the resolver?

If libc, does calling res_init() from the app after the network cable is
connected solve the problem?

>>> Dan
List admin:
Received on 2011-05-20