"Maximum number of connections reached" msg log level changed to LOG_LEVEL_ERROR
authorLee <ler762@users.sourceforge.net>
Sat, 10 Apr 2021 15:05:28 +0000 (11:05 -0400)
committerLee <ler762@users.sourceforge.net>
Sat, 10 Apr 2021 15:05:28 +0000 (11:05 -0400)
Since the max number of connections is a user set value, make it easier to
notice that the limit is being hit.
It was logged at LOG_LEVEL_CONNECT, which is easy to miss.

jcc.c

diff --git a/jcc.c b/jcc.c
index 862c892..5bd0935 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -6099,7 +6099,7 @@ static void listen_loop(void)
       if ((0 != config->max_client_connections)
          && (active_threads >= config->max_client_connections))
       {
-         log_error(LOG_LEVEL_CONNECT,
+         log_error(LOG_LEVEL_ERROR,
             "Rejecting connection from %s. Maximum number of connections reached.",
             csp->ip_addr_str);
          write_socket_delayed(csp->cfd, TOO_MANY_CONNECTIONS_RESPONSE,