curl-users
Re: How to auto-retry a servered connection?
Date: Mon, 21 Jul 2008 10:43:21 EDT
In a message dated 7/21/2008 8:26:15 AM Eastern Daylight Time, daniel_at_haxx.se
writes:
> No it doesn't. Failure to connect to the host returns 7.
Using the batch code I last showed, minus the :TraceCheck subroutine, the
Windows %errorlevel% variable was "0" after the host could not be reached. If it
had returned anything greater than zero, it would have triggered the
continuation of the subroutine :CheckForErrors, and I would not have needed to have
added anything more.
I'm not sure what the deal is. The errorlevel would always return correctly,
as 18, if the connection was severed during a download. Maybe it's some kind
of compatability problem with Windows XP?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-07-21