]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-122187: Avoid TSan reported race in `run_udp_echo_server` (GH-122189) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Jul 2024 08:42:38 +0000 (10:42 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Jul 2024 08:42:38 +0000 (08:42 +0000)
commit977c7992860a58f7a48bcdac53a99e67e5bb9b9c
treeb8aab161f67aa1c70d57d0de5666f4f9aad27230
parent6933c4ace915d3143e79d90b918b6fd600c3d0e6
[3.13] gh-122187: Avoid TSan reported race in `run_udp_echo_server` (GH-122189) (#122263)

gh-122187: Avoid TSan reported race in `run_udp_echo_server` (GH-122189)

TSan doesn't fully recognize the synchronization via I/O, so ensure that
socket name is retrieved earlier and use a different socket for sending
the "STOP" message.
(cherry picked from commit 2f74b709b637cad7a9c18a2d90b0747823f2ff51)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Lib/test/test_asyncio/utils.py