]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: unix: completely unbind abstract sockets during a pause()
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 19:07:51 +0000 (21:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2014 23:13:35 +0000 (01:13 +0200)
commitfd0e008d9d4db2f860b739bd28f6cd31d9aaf2b5
tree38bc08dc70898d08cf7d4720ca76ef043135ef37
parent1c4b814087189b4b0225a473b7cb0a844bc30839
BUG/MEDIUM: unix: completely unbind abstract sockets during a pause()

Abstract namespace sockets ignore the shutdown() call and do not make
it possible to temporarily stop listening. The issue it causes is that
during a soft reload, the new process cannot bind, complaining that the
address is already in use.

This change registers a new pause() function for unix sockets and
completely unbinds the abstract ones since it's possible to rebind
them later. It requires the two previous patches as well as preceeding
fixes.

This fix should be backported into 1.5 since the issue apperas there.
include/proto/proto_uxst.h
src/proto_uxst.c