]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: avoid leak of client socket
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 27 Nov 2018 11:02:37 +0000 (12:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Nov 2018 18:34:00 +0000 (19:34 +0100)
commitc03eb01c1ac478683b70a9b3fd776a8bf25e004d
tree2183f8cdbc4bad8e01cc5a591f8847f1aec6947c
parent680b2bdf2fe0491ec4674bfcdde2d0a3e794995e
BUG/MEDIUM: mworker: avoid leak of client socket

If the master was reloaded and there was a established connection to a
server, the FD resulting from the accept was leaking.

There was no CLOEXEC flag set on the FD of the socketpair created during
a connect call. This is specific to the socketpair in the master process
but it should be applied to every protocol in case we use them in the
master at some point.

No backport needed.
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c