Disable SO_REUSEPORT for UNIX socket

pull/7675/head
Yuchen Zeng 8 years ago
parent 50be893eba
commit d745a6f682
  1. 3
      src/core/lib/iomgr/tcp_server_posix.c

@ -685,7 +685,8 @@ void grpc_tcp_server_start(grpc_exec_ctx *exec_ctx, grpc_tcp_server *s,
s->pollset_count = pollset_count; s->pollset_count = pollset_count;
sp = s->head; sp = s->head;
while (sp != NULL) { while (sp != NULL) {
if (s->so_reuseport && pollset_count > 1) { if (s->so_reuseport && !grpc_is_unix_socket(&sp->addr.sockaddr) &&
pollset_count > 1) {
GPR_ASSERT(GRPC_LOG_IF_ERROR( GPR_ASSERT(GRPC_LOG_IF_ERROR(
"clone_port", clone_port(sp, (unsigned)(pollset_count - 1)))); "clone_port", clone_port(sp, (unsigned)(pollset_count - 1))));
for (i = 0; i < pollset_count; i++) { for (i = 0; i < pollset_count; i++) {

Loading…
Cancel
Save