projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3eaf270
)
listen_loop(): Add number of active threads to a couple of log messages
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 27 Mar 2015 12:40:08 +0000
(12:40 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Fri, 27 Mar 2015 12:40:08 +0000
(12:40 +0000)
jcc.c
patch
|
blob
|
history
diff --git
a/jcc.c
b/jcc.c
index
00c92c1
..
5223c5e
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-1,4
+1,4
@@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.43
4 2015/01/24 16:41:20
fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.43
5 2015/01/24 16:42:57
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@
-3934,7
+3934,9
@@
static void listen_loop(void)
}
csp = &csp_list->csp;
}
csp = &csp_list->csp;
- log_error(LOG_LEVEL_CONNECT, "Listening for new connections ... ");
+ log_error(LOG_LEVEL_CONNECT,
+ "Waiting for the next client connection. Currently active threads: %d",
+ active_threads);
if (!accept_connection(csp, bfds))
{
if (!accept_connection(csp, bfds))
{
@@
-4188,7
+4190,8
@@
static void listen_loop(void)
* XXX: If you assume ...
*/
log_error(LOG_LEVEL_ERROR,
* XXX: If you assume ...
*/
log_error(LOG_LEVEL_ERROR,
- "Unable to take any additional connections: %E");
+ "Unable to take any additional connections: %E. Active threads: %d",
+ active_threads);
write_socket(csp->cfd, TOO_MANY_CONNECTIONS_RESPONSE,
strlen(TOO_MANY_CONNECTIONS_RESPONSE));
close_socket(csp->cfd);
write_socket(csp->cfd, TOO_MANY_CONNECTIONS_RESPONSE,
strlen(TOO_MANY_CONNECTIONS_RESPONSE));
close_socket(csp->cfd);