Internal change.

PiperOrigin-RevId: 443736918
This commit is contained in:
gVisor bot
2022-04-22 12:56:48 -07:00
parent 96c9cf74f5
commit 9481e4452c
+3 -3
View File
@@ -1075,9 +1075,9 @@ void SetupTimeWaitClose(const TestAddress* listener,
ASSERT_THAT(poll(&pfd, 1, kTimeout), SyscallSucceedsWithValue(1));
}
// This sleep is needed to reduce flake to ensure that the passive-close
// ensures the state transitions to CLOSE from LAST_ACK.
absl::SleepFor(absl::Seconds(1));
// Close the passive socket. This ensures that it transitions from LAST_ACK to
// CLOSE.
passive_closefd.reset();
}
constexpr char kRangeFile[] = "/proc/sys/net/ipv4/ip_local_port_range";