Skip to content
Snippets Groups Projects
Commit baa35fc5 authored by Nicolas "Pixel" Noble's avatar Nicolas "Pixel" Noble
Browse files

Disabling check for SO_REUSEPORT in MANYLINUX; it'll always fail.

parent bfe947c4
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment