]> granicus.if.org Git - apache/commitdiff
Merge r1774541 from trunk:
authorJim Jagielski <jim@apache.org>
Fri, 17 Feb 2017 15:36:02 +0000 (15:36 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 17 Feb 2017 15:36:02 +0000 (15:36 +0000)
event: close a race condition where we might re-enable listeners while they
are already or about to be closed.

Submitted by: ylavic
Reviewed by: ylavic, jim, wrowe

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1783413 13f79535-47bb-0310-9956-ffa450edef68

STATUS
server/mpm/event/event.c

diff --git a/STATUS b/STATUS
index 68a23f228003ede25c4f8c8a92f662f4f70cb8d2..573179c8f70d5a83f994c85504f72b815514137c 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -145,12 +145,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) event: close a race condition where we might re-enable listeners while they
-     are already or about to be closed.
-     trunk patch: http://svn.apache.org/r1774541
-     2.4.x patch: trunk works
-     +1: ylavic, jim, wrowe
-
   *) mod_proxy_fcgi: Return HTTP 504 rather than 503 in case of proxy timeout.
      trunk patch: http://svn.apache.org/r1775858
      2.4 patch: trunk works (modulo CHANGES)
index 2c55c5bbf20e381c975fd7e204aa57ec5aa55689..0ae597ebfe2d37657d1cc8d2678c446d811192f6 100644 (file)
@@ -433,6 +433,9 @@ static void disable_listensocks(int process_slot)
 static void enable_listensocks(int process_slot)
 {
     int i;
+    if (listener_may_exit) {
+        return;
+    }
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, ap_server_conf, APLOGNO(00457)
                  "Accepting new connections again: "
                  "%u active conns (%u lingering/%u clogged/%u suspended), "