]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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>
Sun, 22 Oct 2017 07:54:16 +0000 (09:54 +0200)
commitf9ce57e86c9126785a25e5b6625f0f43b17ce210
tree712e8875568eaad561712b77c6780a7f6f4d82e9
parent1a0545f3d74630ee124540c2fc77f8c88c81df04
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.
include/proto/connection.h
src/stream_interface.c