]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tcp: silent-drop: only drain the connection when quick-ack is disabled
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:15:01 +0000 (18:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Sep 2015 16:15:01 +0000 (18:15 +0200)
commitfc2a2d97d6855e9a00a22bc26623e4f2f2c1aeda
treea82b695b2470868cff564a675899db787feeccda
parentf50ec0fdbc7f5c8eff3fa91c09ce19c5df3cf8d6
CLEANUP: tcp: silent-drop: only drain the connection when quick-ack is disabled

The conn_sock_drain() call is only there to force the system to ACK
pending data in case of TCP_QUICKACK so that the client doesn't retransmit,
otherwise it leads to a real RST making the feature useless. There's no
point in draining the connection when quick ack cannot be disabled, so
let's move the call inside the ifdef part.
src/proto_tcp.c