[3.7] bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053) by miss-islington · Pull Request #12056 · python/cpython

@nanjekyejoannah @miss-islington

…ion (pythonGH-12053)

Use longer timeout for accept() in the server and block on accept in the client.
The client now only sets the timeout once the socket is connected.
(cherry picked from commit 53b9e1a)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>

vstinner