From 0680a290e853d85293d692431426def132f29356 Mon Sep 17 00:00:00 2001 From: Lee Date: Sat, 10 Apr 2021 11:05:28 -0400 Subject: [PATCH] "Maximum number of connections reached" msg log level changed to LOG_LEVEL_ERROR 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jcc.c b/jcc.c index 862c892e..5bd09351 100644 --- 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, -- 2.39.2