Skip to content

Commit

Permalink
Disabling check for SO_REUSEPORT in MANYLINUX; it'll always fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble committed Aug 19, 2016
1 parent bfe947c commit baa35fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/lib/iomgr/tcp_server_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,17 @@ struct grpc_tcp_server {
};

static gpr_once check_init = GPR_ONCE_INIT;
static bool has_so_reuseport;
static bool has_so_reuseport = false;

static void init(void) {
#ifndef GPR_MANYLINUX1
int s = socket(AF_INET, SOCK_STREAM, 0);
if (s >= 0) {
has_so_reuseport = GRPC_LOG_IF_ERROR("check for SO_REUSEPORT",
grpc_set_socket_reuse_port(s, 1));
close(s);
}
#endif
}

grpc_error *grpc_tcp_server_create(grpc_closure *shutdown_complete,
Expand Down

0 comments on commit baa35fc

Please sign in to comment.