diff options
author | Ross Burton <ross.burton@arm.com> | 2022-08-25 01:37:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 01:37:18 (GMT) |
commit | df110126971d0271a977ce10779083b3e335b4da (patch) | |
tree | 2cb51687e1131c7621aa6b190c0b9c8bcde006ab /Python/getcompiler.c | |
parent | e34c82abeb7ace09e6b5d116585c47cc372996c1 (diff) | |
download | cpython-df110126971d0271a977ce10779083b3e335b4da.zip cpython-df110126971d0271a977ce10779083b3e335b4da.tar.gz cpython-df110126971d0271a977ce10779083b3e335b4da.tar.bz2 |
gh-95243: Mitigate the race condition in testSockName (#96173)
find_unused_port() has an inherent race condition, but we can't use
bind_port() as that uses .getsockname() which this test is exercising.
Try binding to unused ports a few times before failing.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions