Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test race condition on port binding #32140

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Conversation

gnossen
Copy link
Contributor

@gnossen gnossen commented Jan 18, 2023

Spotted here. It was previously possible for another process on the machine to take the server's port between when it went down and when it came back up. This change ensures that the port remains occupied throughout the duration of the test.

Copy link
Contributor

@XuanWang-Amos XuanWang-Amos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting change

@gnossen gnossen merged commit 5426ef1 into grpc:master Jan 18, 2023
@gnossen gnossen deleted the reconnect_race branch January 18, 2023 19:56
gnossen added a commit that referenced this pull request Jan 18, 2023
ctiller pushed a commit that referenced this pull request Jan 18, 2023
@copybara-service copybara-service bot added the imported Specifies if the PR has been imported to the internal repository label Jan 18, 2023
XuanWang-Amos pushed a commit to XuanWang-Amos/grpc that referenced this pull request May 1, 2023
XuanWang-Amos pushed a commit to XuanWang-Amos/grpc that referenced this pull request May 1, 2023
wanlin31 pushed a commit that referenced this pull request May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test imported Specifies if the PR has been imported to the internal repository kind/bug lang/Python release notes: no Indicates if PR should not be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants