cURL / Mailing Lists / curl-library / Single Mail

curl-library

error (6) : name lookup timed out

From: sundararaj reel <sundararaj.reel_at_googlemail.com>
Date: Thu, 4 Dec 2008 11:58:15 +0100

Hi all,

 I have a simple download-job to do. It is called multiple times in a
program.

 The problem arises when the internet connection goes down and is up again.
curl is not able to reach the server even after internet connection is
reestablished.

I have tried CURLOPT_FRESH_CONNECT and CURLOPT_FORBID_REUSE. The result does
not change. But if the program is restarted then the server is once again
reachable.

Here is a small example to show the behaviour.
Code : http://codepad.org/eC6CNr17
Output: http://codepad.org/F5lJPXHV

How can libcurl reach the server when connection has been restablished,
without restarting the program ?

-- 
Ciao,
Sundararaj
Received on 2008-12-04