Skip to content

Commit

Permalink
Disable SO_REUSEPORT at prepare_socket() for unix sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
y-zeng committed Aug 9, 2016
1 parent d745a6f commit 2414bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/lib/iomgr/tcp_server_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2414bbb

Please sign in to comment.