]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
avoid SO_REUSEPORT w/o ListenCoresBucketsRatio
authorEric Covener <covener@apache.org>
Mon, 9 Jan 2017 00:47:16 +0000 (00:47 +0000)
committerEric Covener <covener@apache.org>
Mon, 9 Jan 2017 00:47:16 +0000 (00:47 +0000)
Can lead to unintended/confusing sharing between
multiple servers started by the same ID.

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

CHANGES
server/listen.c

diff --git a/CHANGES b/CHANGES
index 1dfa156b01b6b968d6f74c30ed07a8043ccf611a..fb9e3b2e6e97df4ce5ecf002428cd0f813828554 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) Don't set SO_REUSEPORT unless ListenCoresBucketsRatio is greater
+     than zero.  [Eric Covener]
+
   *) mod_http2: streaming of request output now reacts timely to data
      from other streams becoming available. Same for new incoming requests.
      [Stefan Eissing]
index 24a389bf4b901250e536eedec275da14a284d08f..9989b8074865633ef02e79b594ebdfe9e483abab 100644 (file)
@@ -146,7 +146,7 @@ static apr_status_t make_sock(apr_pool_t *p, ap_listen_rec *server, int do_bind_
 #endif
 
 #if defined(SO_REUSEPORT)
-    if (ap_have_so_reuseport) {
+    if (ap_have_so_reuseport && ap_listencbratio > 0) {
         int thesock;
         apr_os_sock_get(&thesock, s);
         if (setsockopt(thesock, SOL_SOCKET, SO_REUSEPORT,