]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream_interface: don't close outgoing connections on shutw()
authorWilly Tarreau <w@1wt.eu>
Sun, 30 Dec 2012 00:39:37 +0000 (01:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 30 Dec 2012 00:39:37 +0000 (01:39 +0100)
commit9568d7108f339830f28d665ece1e2b161380b6b5
tree5ec3caf56c8ab381534b82fc51d7172d4cfef1a8
parenta7a7ebc38280d7a04192bf95e6852222f4bd8140
BUG/MEDIUM: stream_interface: don't close outgoing connections on shutw()

Commit 7bb68abb introduced the SI_FL_NOHALF flag in dev10. It is used
to automatically close the write side of a connection whose read side
is closed. But the patch also caused the opposite to happen, which is
that a simple shutw() call would immediately close the connection. This
is not desired because when using option abortonclose, we want to pass
the client's shutdown to the server which will decide what to do with
it. So let's avoid the close when SHUTR is not set.
src/stream_interface.c