Closed KJTsanaktsidis closed 3 months ago
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.
See https://github.com/ruby/ruby/actions/runs/8497267556/job/23275642160 for an example of such flake, and https://bugs.ruby-lang.org/issues/20403 for more details.
[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.
See https://github.com/ruby/ruby/actions/runs/8497267556/job/23275642160 for an example of such flake, and https://bugs.ruby-lang.org/issues/20403 for more details.
[Bug #20403]