Skip to content
Snippets Groups Projects
Unverified Commit 979a3b8c authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
Browse files

gh-95243: Mitigate the race condition in testSockName (GH-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: default avatarRoss Burton <ross.burton@arm.com>
(cherry picked from commit df110126)

Co-authored-by: default avatarRoss Burton <ross.burton@arm.com>
parent 41e82574
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment