cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: How to auto-retry a servered connection?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 21 Jul 2008 14:22:13 +0200 (CEST)

On Mon, 21 Jul 2008, PsiStormYamato_at_cs.com wrote:

> Looping the command until (%errorlevel% = 0) only worked for the first
> instance of the connection loss, since failure to establish a connection
> returns an exit code of "0".

No it doesn't. Failure to connect to the host returns 7.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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