mirror of https://github.com/hashicorp/consul
7a814fce63
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 ``` |
||
---|---|---|
.. | ||
agent | ||
configtest.go | ||
configtest_test.go | ||
event.go | ||
event_test.go | ||
exec.go | ||
exec_test.go | ||
force_leave.go | ||
force_leave_test.go | ||
info.go | ||
info_test.go | ||
join.go | ||
join_test.go | ||
keygen.go | ||
keygen_test.go | ||
keyring.go | ||
keyring_test.go | ||
leave.go | ||
leave_test.go | ||
lock.go | ||
lock_test.go | ||
maint.go | ||
maint_test.go | ||
members.go | ||
members_test.go | ||
monitor.go | ||
reload.go | ||
reload_test.go | ||
rpc.go | ||
rpc_test.go | ||
rtt.go | ||
rtt_test.go | ||
util_test.go | ||
util_unix.go | ||
util_windows.go | ||
version.go | ||
version_test.go | ||
watch.go | ||
watch_test.go |