projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6d5412
)
When retrying to connect, also log the maximum number of connection attempts
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Mar 2011 13:53:04 +0000
(13:53 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 27 Mar 2011 13:53:04 +0000
(13:53 +0000)
jbsockets.c
patch
|
blob
|
history
diff --git
a/jbsockets.c
b/jbsockets.c
index
f9d5ef3
..
3b82f2c
100644
(file)
--- a/
jbsockets.c
+++ b/
jbsockets.c
@@
-1,4
+1,4
@@
-const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.8
0 2011/03/27 13:51:04
fabiankeil Exp $";
+const char jbsockets_rcs[] = "$Id: jbsockets.c,v 1.8
1 2011/03/27 13:52:00
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jbsockets.c,v $
/*********************************************************************
*
* 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,
}
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);
} while (forwarded_connect_retries < csp->config->forwarded_connect_retries);