This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new be7721cf58 Skip SO_REUSEPORT for AF_UNIX sockets (#12470) (#12474)
be7721cf58 is described below
commit be7721cf58fe8d8611dfe9d284e0a5d01a3de0c6
Author: Chris McFarlen <[email protected]>
AuthorDate: Wed Aug 27 14:57:48 2025 -0500
Skip SO_REUSEPORT for AF_UNIX sockets (#12470) (#12474)
(cherry picked from commit 9d9a8faf9c11bb0f660aaa277f9587a293d5f1d1)
---
src/iocore/net/Server.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/iocore/net/Server.cc b/src/iocore/net/Server.cc
index 6f5f569ce8..fab8dee558 100644
--- a/src/iocore/net/Server.cc
+++ b/src/iocore/net/Server.cc
@@ -38,6 +38,7 @@
#include "tscore/ink_inet.h"
#include "tscore/ink_platform.h"
#include "tscore/ink_sock.h"
+#include <sys/socket.h>
#if TS_USE_HWLOC
#include <hwloc.h>
@@ -229,7 +230,7 @@ Server::setup_fd_for_listen(bool non_blocking, const
NetProcessor::AcceptOptions
goto Lerror;
}
REC_ReadConfigInteger(listen_per_thread, "proxy.config.exec_thread.listen");
- if (listen_per_thread == 1) {
+ if (listen_per_thread == 1 && opt.ip_family != AF_UNIX) {
if (sock.enable_option(SOL_SOCKET, SO_REUSEPORT) < 0) {
goto Lerror;
}