]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
kill the keepalive conns as early as possible during graceful
authorJim Jagielski <jim@apache.org>
Thu, 15 Dec 2016 21:32:50 +0000 (21:32 +0000)
committerJim Jagielski <jim@apache.org>
Thu, 15 Dec 2016 21:32:50 +0000 (21:32 +0000)
process exit.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1774525 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/event/event.c

index 01dc6c5eb726a92ab56124fc25f88e1367321f9b..2bd86c51ad4bd6e0395069120977c41734e84c52 100644 (file)
@@ -1865,6 +1865,7 @@ static void * APR_THREAD_FUNC listener_thread(apr_thread_t * thd, void *dummy)
             if (terminate_mode == ST_UNGRACEFUL
                 || apr_atomic_read32(&connection_count) == 0)
                 break;
+            process_keepalive_queue(0); /* kill'em all early \m/ */
         }
 
         if (conns_this_child <= 0)