Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug #20403] Add an explicit with_udp_and_tcp helper to test_dns.rb #10413

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

Closed

Conversation

KJTsanaktsidis
Copy link
Contributor

https://stackoverflow.com/questions/48478869/cannot-bind-to-some-ports-due-to-permission-deniedThis helper tries to bind UDP and TCP sockets to the same port, by retrying the bind if the randomly-assinged UDP port is already taken in TCP. This fixes a flaky test.

[Bug #20403]

This helper tries to bind UDP and TCP sockets to the same port, by
retrying the bind if the randomly-assinged UDP port is already taken in
TCP. This fixes a flaky test.

[Bug #20403]
@jeremyevans
Copy link
Contributor

I like it, but it should be submitted upstream to https://github.com/ruby/resolv

@KJTsanaktsidis
Copy link
Contributor Author

Oh, I forgot this was mirrored, thanks. I opened ruby/resolv#49 instead.

@KJTsanaktsidis KJTsanaktsidis deleted the ktsanaktsidis/bug_20403 branch March 31, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants