Fix and re-enable TCPSocketTest.ServerReceivesMultipleAccept
This test is flaky because the test closes client connection during each for-loop iteration. When server checks whether the connection is still connected using accepted_socket_->GetPeerAddress() in network::TCPServerSocket::OnAcceptCompleted(), it will get net::ERR_SOCKET_NOT_CONNECTED (-15). This test keeps the client sockets alive and delay disconnecting them until server finishes all Accept() callbacks. Bug: 821224 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo Change-Id: I7bf12704272f9ccc23c085c6d72db28a3d0dbe67 Reviewed-on: https://chromium-review.googlesource.com/966802Reviewed-by:Matt Menke <mmenke@chromium.org> Commit-Queue: Helen Li <xunjieli@chromium.org> Cr-Commit-Position: refs/heads/master@{#543743}
Showing
Please register or sign in to comment