pekko icon indicating copy to clipboard operation
pekko copied to clipboard

chore: Set reuseAddr/port in temporaryServerAddresses

Open He-Pin opened this issue 2 months ago • 1 comments

Motivation: refs: https://github.com/apache/pekko/issues/2268

Try to fix this by set reuse address to true.

He-Pin avatar Sep 30 '25 14:09 He-Pin

I'm not sure this is the right fix. While it will avoid the 'bind' error, presumably the test performs the bind because it actually wants to connect to the port. With this change, the bind may succeed, but the connect may connect to the 'wrong' test. In that case the test will still be flaky, but the flakiness will be even harder to understand. I'm not sure that's a net improvement...

raboof avatar Sep 30 '25 15:09 raboof