hashicorp / memberlist

Golang package for gossip based membership and failure detection
Mozilla Public License 2.0
3.62k stars 435 forks source link

Please enable passing socket options #240

Open c4milo opened 3 years ago

c4milo commented 3 years ago

It is a bit annoying to work with memberlist since it doesn't set SO_REUSEPORT and SO_REUSEADDR. I have to change my ports every time I take down my service.

$ ./build/stitchd -c cmd/stitchd/stitchd.example.cfg
2021-07-22T13:09:59.444-0400 [DEBUG] stitchd/main.go:79: starting service... : address=127.0.0.1:7778
2021/07/22 13:09:59 [DEBUG] memberlist: Got bind error: Failed to start UDP listener on "0.0.0.0" port 5112: listen udp 0.0.0.0:5112: bind: address already in use