diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-08-19 02:20:11 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2016-08-19 02:20:11 +0200 |
commit | baa35fc50d9412c5b21ceb2ec0c2bcd0153c9e62 (patch) | |
tree | 06932b68fef237cf3e1114ad0b123fe9b6cd943b /src/core | |
parent | bfe947c4af9da8e63edc294c7ba53b7a4a0ace53 (diff) |
Disabling check for SO_REUSEPORT in MANYLINUX; it'll always fail.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/tcp_server_posix.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/tcp_server_posix.c b/src/core/lib/iomgr/tcp_server_posix.c index cb2ff782d6..425634d009 100644 --- a/src/core/lib/iomgr/tcp_server_posix.c +++ b/src/core/lib/iomgr/tcp_server_posix.c @@ -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, |