]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-12053)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 Feb 2019 16:48:52 +0000 (08:48 -0800)
committerGitHub <noreply@github.com>
Tue, 26 Feb 2019 16:48:52 +0000 (08:48 -0800)
commit2632474957fa9c6311af21be6906d1234853f288
treed1a676c4100d0142c65c01a04b1e2371de7f3fb3
parent4e6646fef5d2cc53422e4eca0b18201ed5a5c4b6
bpo-36123: Fix test_socket.testWithTimeoutTriggeredSend() race condition (GH-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 53b9e1a1c1d86187ad6fbee492b697ef8be74205)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
Lib/test/test_socket.py
Misc/NEWS.d/next/Tests/2019-02-26-12-51-35.bpo-36123.QRhhRS.rst [new file with mode: 0644]