Skip to content
Snippets Groups Projects
Commit 2414bbb9 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

Disable SO_REUSEPORT at prepare_socket() for unix sockets

parent d745a6f6
No related branches found
No related tags found
No related merge requests found
......@@ -306,7 +306,7 @@ static grpc_error *prepare_socket(int fd, const struct sockaddr *addr,
GPR_ASSERT(fd >= 0);
if (so_reuseport) {
if (so_reuseport && !grpc_is_unix_socket(addr)) {
err = grpc_set_socket_reuse_port(fd, 1);
if (err != GRPC_ERROR_NONE) goto error;
}
......
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