cURL / Mailing Lists / curl-library / Single Mail


cURL crashes when nameserver is down

From: Andreas Rieke <>
Date: Tue, 17 Feb 2004 13:56:09 +0100


an own application program with libcurl crashes when - using a
/etc/resolv.conf with three different nameservers - the first nameserver

goes down and three consecutive requests to an https server are started.

It seems that cURL uses only the first nameserver and does not matter
about those which are configured just for the case that the first is
down. However, I can not understand that it starts three requests
without being able to resolve the hostname and crashes with the fourth
request (which is the same as the three before).

My application runs on a SuSE Linux 7.1 machine with a 2.4.16-4GB
Kernel. I use the easy interface from C/C++ and call curl_easy_init
before each request (persistent connections do not work in my
environment) and curl_easy_cleanup after it. From a trace I see that
curl_easy_perform does not return. I recognized this bug when I had to
change things on our nameserver where I had to shut it down, a short
time later my cURL application (which normally runs quite stable)

Did anyone see something similar? Thanks for any ideas,


Received on 2004-02-17