Skip to content

Commit

Permalink
Merge pull request grpc#7787 from nicolasnoble/quick-fix-for-manylinux
Browse files Browse the repository at this point in the history
Disabling check for SO_REUSEPORT in MANYLINUX; it'll always fail.
  • Loading branch information
nicolasnoble authored Aug 19, 2016
2 parents bfe947c + baa35fc commit 2a69139
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 2a69139

Please sign in to comment.