Try increase listen backlog.

PiperOrigin-RevId: 251928000
This commit is contained in:
Rahat Mahmood
2019-06-06 14:32:04 -07:00
committed by Shentubot
parent 81eafb2c5e
commit 8b8bd8d5b2
+1 -1
View File
@@ -198,7 +198,7 @@ TEST_P(SocketInetReusePortTest, TcpPortReuseMultiThread) {
ASSERT_THAT(
bind(fd, reinterpret_cast<sockaddr*>(&listen_addr), listener.addr_len),
SyscallSucceeds());
ASSERT_THAT(listen(fd, 40), SyscallSucceeds());
ASSERT_THAT(listen(fd, 512), SyscallSucceeds());
// On the first bind we need to determine which port was bound.
if (i != 0) {