MEDIUM: connection: make conn_sock_shutw() aware of lingering
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Oct 2017 15:24:42 +0000 (17:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit9fbbff6de4222c79236043a2f9c2f5e6d7fb6c81
tree10894eac6c3193c0c22e0ef5f50b24ccc3400b89
parentecdb3fe9f4b27ffe053d34d92a4c37692af49737
MEDIUM: connection: make conn_sock_shutw() aware of lingering

Instead of having to manually handle lingering outside, let's make
conn_sock_shutw() check for it before calling shutdown(). We simply
don't want to emit the FIN if we're going to reset the connection
due to lingering. It's particularly important for silent-drop where
it's absolutely mandatory that no packet leaves the machine.
src/stream_interface.c