diff options
author | Yuchen Zeng <zyc@google.com> | 2016-08-08 21:22:54 -0700 |
---|---|---|
committer | Yuchen Zeng <zyc@google.com> | 2016-08-08 21:22:54 -0700 |
commit | 2414bbb9e772a65b0dc5c04361b052b0cf16d597 (patch) | |
tree | 5e3f4c3a71952cb8f785ab180ae228e30c542691 /src/core | |
parent | d745a6f682a9aaab0f20fc4ba8bfc17920e0604b (diff) |
Disable SO_REUSEPORT at prepare_socket() for unix sockets
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/tcp_server_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_posix.c b/src/core/lib/iomgr/tcp_server_posix.c index 475bb6068f..6bba0202a5 100644 --- a/src/core/lib/iomgr/tcp_server_posix.c +++ b/src/core/lib/iomgr/tcp_server_posix.c @@ -306,7 +306,7 @@ static grpc_error *prepare_socket(int fd, const struct sockaddr *addr, GPR_ASSERT(fd >= 0); - if (so_reuseport) { + if (so_reuseport && !grpc_is_unix_socket(addr)) { err = grpc_set_socket_reuse_port(fd, 1); if (err != GRPC_ERROR_NONE) goto error; } |