]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mpm_event: Don't spam with "Stopping process due to MaxConnectionsPerChild"
authorYann Ylavic <ylavic@apache.org>
Fri, 31 May 2024 15:18:33 +0000 (15:18 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 31 May 2024 15:18:33 +0000 (15:18 +0000)
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

index 848dd0e564fff2cddb1c20b31e5ca346df698cc0..414c96ce673bd648795c5a5c70e2240ce8f31842 100644 (file)
@@ -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)