Automated rollback of changelist 443736918

PiperOrigin-RevId: 444415265
This commit is contained in:
Jamie Liu 2022-04-25 17:36:42 -07:00 committed by gVisor bot
parent 772e9a4e9b
commit fc5af87b46
1 changed files with 3 additions and 3 deletions

View File

@ -1075,9 +1075,9 @@ void SetupTimeWaitClose(const TestAddress* listener,
ASSERT_THAT(poll(&pfd, 1, kTimeout), SyscallSucceedsWithValue(1));
}
// Close the passive socket. This ensures that it transitions from LAST_ACK to
// CLOSE.
passive_closefd.reset();
// 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));
}
constexpr char kRangeFile[] = "/proc/sys/net/ipv4/ip_local_port_range";