Disable SO_REUSEPORT at prepare_socket() for unix sockets

pull/7675/head
Yuchen Zeng 8 years ago
parent d745a6f682
commit 2414bbb9e7
  1. 2
      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); GPR_ASSERT(fd >= 0);
if (so_reuseport) { if (so_reuseport && !grpc_is_unix_socket(addr)) {
err = grpc_set_socket_reuse_port(fd, 1); err = grpc_set_socket_reuse_port(fd, 1);
if (err != GRPC_ERROR_NONE) goto error; if (err != GRPC_ERROR_NONE) goto error;
} }

Loading…
Cancel
Save