mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Deflake the socket_inet_loopback test
Don't close sockets for writing otherwise sendto can fail with EPIPE. PiperOrigin-RevId: 419751558
This commit is contained in:
@@ -1562,7 +1562,7 @@ TEST_P(SocketInetReusePortTest, UdpPortReuseMultiThread) {
|
||||
|
||||
// Shutdown all sockets to wake up other threads.
|
||||
for (int j = 0; j < kThreadCount; j++)
|
||||
shutdown(listener_fds[j].get(), SHUT_RDWR);
|
||||
shutdown(listener_fds[j].get(), SHUT_RD);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user