Skip to content

Commit 583545a

Browse files
bmaurerfacebook-github-bot
authored andcommitted
Increase listen backlog for gloo
Summary: The backlog argument defines the maximum length to which the queue of pending connections for sockfd may grow. If we exceed the backlog, clients will get a RST (with our in-house setting of net.ipv4.tcp_abort_on_overflow = 1) Created from CodeHub with https://fburl.com/edit-in-codehub Reviewed By: xunnanxu Differential Revision: D45134876 fbshipit-source-id: 7236281f8027ccebbbf92345ec7752a18ae1278d
1 parent d74270e commit 583545a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gloo/transport/tcp/pair.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void Pair::listen() {
178178

179179
// listen(2) on socket
180180
fd_ = fd;
181-
rv = ::listen(fd_, 1);
181+
rv = ::listen(fd_, 1024);
182182
if (rv == -1) {
183183
::close(fd_);
184184
fd_ = FD_INVALID;

0 commit comments

Comments
 (0)