libp2p / go-reuseport

reuse tcp/udp ports in golang
ISC License
767 stars 109 forks source link

check for reuseport support by opening a socket, not listening. #40

Closed Stebalien closed 6 years ago

Stebalien commented 6 years ago

This ensures that, even if we can't bind to a random port on localhost for some reason, we can still correctly detect if reuse port is supported.

Thanks to @Coderlane for suggesting this fix.

@fasaxc, if you're still around, do you think you could test this?