avoid SO_REUSEPORT w/o ListenCoresBucketsRatio
Can lead to unintended/confusing sharing between
multiple servers started by the same ID.
Submitted by: covener
Reviewed by: jorton, covener, wrowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1787301 13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.4.26
+ *) Don't set SO_REUSEPORT unless ListenCoresBucketsRatio is greater
+ than zero. [Eric Covener]
+
*) mod_http2: moving session cleanup to pre_close hook to avoid races with
modules already shut down and slave connections still operating.
[Stefan Eissing]
#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,