This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 9d9a8faf9c Skip SO_REUSEPORT for AF_UNIX sockets (#12470)
9d9a8faf9c is described below
commit 9d9a8faf9c11bb0f660aaa277f9587a293d5f1d1
Author: Chris McFarlen <[email protected]>
AuthorDate: Wed Aug 27 13:52:45 2025 -0500
Skip SO_REUSEPORT for AF_UNIX sockets (#12470)
---
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 7960e31ae8..3cd85df3a0 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;
}
listen_per_thread =
RecGetRecordInt("proxy.config.exec_thread.listen").value_or(0);
- 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;
}