mirror of https://github.com/hashicorp/consul
IP sockets provide nice endpoints where the kernel will fail to bind and will error out saying socket already in use. UNIX sockets, however, don't enjoy this nice property when cleaning up stale sockets on listen. Given the number of addresses in Consul, provide operators with a helpful message that indicates the source of the reused address. Before this fix, it was possible for the HTTP socket to unlink the RPC socket, leading to confusing blocked behavior when running commands like `consul info`. ``` % cat tmp.config.json { "addresses": { "http": "unix:///tmp/.consul.sock", "rpc": "unix:///tmp/.consul.sock" }, "unix_sockets": { "mode": "0700" } } % consul agent -config-file tmp.config.json -advertise=127.0.0.1 -data-dir=/tmp/ ==> All listening endpoints must be unique: HTTP address already configured for RPC Exit 1 ```pull/1910/head
parent
a440433ac8
commit
7a814fce63
Loading…
Reference in new issue