From b2ec9aa06da57dace80f6f00915b0bb79aa55e21 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 27 Mar 2011 13:53:04 +0000 Subject: [PATCH] When retrying to connect, also log the maximum number of connection attempts --- jbsockets.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2