From: Fabian Keil Date: Sun, 27 Mar 2011 13:53:04 +0000 (+0000) Subject: When retrying to connect, also log the maximum number of connection attempts X-Git-Tag: v_3_0_18~293 X-Git-Url: http://www.privoxy.org/gitweb/general.html?a=commitdiff_plain;h=b2ec9aa06da57dace80f6f00915b0bb79aa55e21;p=privoxy.git When retrying to connect, also log the maximum number of connection attempts --- diff --git a/jbsockets.c b/jbsockets.c index f9d5ef37..3b82f2cd 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -1,4 +1,4 @@ -const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.80 2011/03/27 13:51:04 fabiankeil Exp $"; +const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.81 2011/03/27 13:52:00 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $ @@ -158,8 +158,8 @@ jb_socket connect_to(const char *host, int portnum, struct client_state *csp) } forwarded_connect_retries++; log_error(LOG_LEVEL_ERROR, - "Attempt %d to connect to %s failed. Trying again.", - forwarded_connect_retries, host); + "Attempt %d of %d to connect to %s failed. Trying again.", + forwarded_connect_retries, csp->config->forwarded_connect_retries, host); } while (forwarded_connect_retries < csp->config->forwarded_connect_retries);