mirror of
https://github.com/wassname/ray.git
synced 2026-10-03 12:50:16 +08:00
Increase socket listen backlog from 5 to 128. (#661)
This commit is contained in:
1 parent
8d350f628a
commit
1916475e14
3 files changed
+5
-5
No files matched your search
+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;
|
||||
|
||||
Reference in new issue
Block a user