summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2017-01-09 00:47:16 +0000
committerEric Covener <covener@apache.org>2017-01-09 00:47:16 +0000
commitb76545b78904c1a5cbf96d962b2c735bf4225d59 (patch)
tree6329fff6d0041283bf5e53d6fc009c85b8c6333b /server
parent728b6cde480fa6b04cfbea0959ca0ac8bfc37ed3 (diff)
downloadhttpd-b76545b78904c1a5cbf96d962b2c735bf4225d59.tar.gz
avoid SO_REUSEPORT w/o ListenCoresBucketsRatio
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
Diffstat (limited to 'server')
-rw-r--r--server/listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/listen.c b/server/listen.c
index 24a389bf4b..9989b80748 100644
--- a/server/listen.c
+++ b/server/listen.c
@@ -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,