mirror of
https://github.com/wassname/ray.git
synced 2026-06-29 15:11:50 +08:00
Increase socket listen backlog from 5 to 128. (#661)
This commit is contained in:
committed by
Philipp Moritz
parent
8d350f628a
commit
1916475e14
+2
-2
@@ -49,7 +49,7 @@ int bind_inet_sock(const int port, bool shall_listen) {
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
}
|
||||
if (shall_listen && listen(socket_fd, 5) == -1) {
|
||||
if (shall_listen && listen(socket_fd, 128) == -1) {
|
||||
LOG_ERROR("Could not listen to socket %d", port);
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
@@ -90,7 +90,7 @@ int bind_ipc_sock(const char *socket_pathname, bool shall_listen) {
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
}
|
||||
if (shall_listen && listen(socket_fd, 5) == -1) {
|
||||
if (shall_listen && listen(socket_fd, 128) == -1) {
|
||||
LOG_ERROR("Could not listen to socket %s", socket_pathname);
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
|
||||
@@ -122,7 +122,7 @@ int bind_ipc_sock(const std::string &pathname, bool shall_listen) {
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
}
|
||||
if (shall_listen && listen(socket_fd, 5) == -1) {
|
||||
if (shall_listen && listen(socket_fd, 128) == -1) {
|
||||
ARROW_LOG(ERROR) << "Could not listen to socket " << pathname;
|
||||
close(socket_fd);
|
||||
return -1;
|
||||
|
||||
@@ -1619,8 +1619,8 @@ void start_server(const char *store_socket_name,
|
||||
redis_primary_addr, redis_primary_port);
|
||||
CHECK(g_manager_state);
|
||||
|
||||
CHECK(listen(remote_sock, 5) != -1);
|
||||
CHECK(listen(local_sock, 5) != -1);
|
||||
CHECK(listen(remote_sock, 128) != -1);
|
||||
CHECK(listen(local_sock, 128) != -1);
|
||||
|
||||
LOG_DEBUG("Started server connected to store %s, listening on port %d",
|
||||
store_socket_name, port);
|
||||
|
||||
Reference in New Issue
Block a user