From 3cf40d93a9e0d6fa3401f326e4e447cafbc5b604 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 31 May 2024 15:18:33 +0000 Subject: [PATCH] mpm_event: Don't spam with "Stopping process due to MaxConnectionsPerChild" When MaxConnectionsPerChild is reached there may be some connections to process still and the listener should stop writing this at every loop. Logging once is enough. * server/mpm/event/event.c(check_infinite_requests): Raise conns_this_child unconditionally. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918078 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/event/event.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/mpm/event/event.c b/server/mpm/event/event.c index 848dd0e564f..414c96ce673 100644 --- a/server/mpm/event/event.c +++ b/server/mpm/event/event.c @@ -1358,10 +1358,8 @@ static void check_infinite_requests(void) "Stopping process due to MaxConnectionsPerChild"); signal_threads(ST_GRACEFUL); } - else { - /* keep going */ - conns_this_child = APR_INT32_MAX; - } + /* keep going */ + conns_this_child = APR_INT32_MAX; } static int close_listeners(int *closed) -- 2.47.2