cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl fails to connect, when server is up after being down for a long time

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 11 Oct 2007 10:45:07 -0700

On Thu, Oct 11, 2007 at 03:26:30AM -0700, mini thomas wrote:
> So what exactly happens when it fails to connect?
>
> If I enable verbose, the following prints will be there in the log
>
> "not connected.
> Closing connection #0"
>
> ( When the connection fails the application will try connecting again)

So, are you saying it *does* continue operation? It just opens another
connection? That's expected behaviour. If you're sending data when the
connection is down, TCP will time out and curl will close the connection.
When you send data the next time, curl will open a new connection.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-10-11