Re: error (6) : name lookup timed out
Date: Thu, 4 Dec 2008 16:37:13 +0530
2008/12/4 sundararaj reel <sundararaj.reel_at_googlemail.com>
> Hi all,
> I have a simple download-job to do. It is called multiple times in a
> 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
> 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 ?
you could perhaps try cleaning up the handle and initing it again
Received on 2008-12-04