]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcp: make silent-drop always force a TCP reset
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:11:32 +0000 (18:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:11:32 +0000 (18:11 +0200)
commitf50ec0fdbc7f5c8eff3fa91c09ce19c5df3cf8d6
tree49ca49168757504d7d70ff26108c73967788b7a7
parent971f7b6bb4de2f9de849537bda5df8389a012f28
BUG/MINOR: tcp: make silent-drop always force a TCP reset

The silent-drop action is supposed to close with a TCP reset that is
either not sent or not too far. But since it's on the client-facing
side, the socket's lingering is enabled by default and the RST only
occurs if some pending unread data remain in the queue when closing.
This causes some clean shutdowns to occur with retransmits, which is
not good at all. Force linger_risk on the socket to flush all data
and destroy the socket.

No backport is needed, this was introduced in 1.6-dev6.
src/proto_tcp.c