SIGN IN SIGN UP

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>
R
Ross Burton committed
df110126971d0271a977ce10779083b3e335b4da
Parent: e34c82a
Committed by GitHub <noreply@github.com> on 8/25/2022, 1:37:18 AM