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:
Andrei Vagin
2022-01-04 22:45:56 -08:00
committed by gVisor bot
parent 52bee5297c
commit 496ba59add
+1 -1
View File
@@ -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);
});
}