Skip to content

Commit

Permalink
Increase listen backlog for gloo
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bmaurer authored and facebook-github-bot committed Apr 20, 2023
1 parent d74270e commit 583545a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gloo/transport/tcp/pair.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void Pair::listen() {

// listen(2) on socket
fd_ = fd;
rv = ::listen(fd_, 1);
rv = ::listen(fd_, 1024);
if (rv == -1) {
::close(fd_);
fd_ = FD_INVALID;
Expand Down

0 comments on commit 583545a

Please sign in to comment.