curl-library
Re: DNS look up will always fail, if thread is started with network cable disconnected.
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 <henrik.heino_at_varaani.com> 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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-20