]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tcp: add explicit support for delayed ACK in connect()
authorWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 09:24:27 +0000 (10:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 24 Nov 2012 09:24:27 +0000 (10:24 +0100)
commitf0837b259b3c8191926d306e69d2cfae71afdbb4
treee186f249ada2926c7ba93ed92415fe9277119960
parent0eb2bed561134553eaa165204cab0d1289e1e4a8
MEDIUM: tcp: add explicit support for delayed ACK in connect()

Commit 24db47e0 tried to improve support for delayed ACK upon connect
but it was incomplete, because checks with the proxy protocol would
always enable polling for data receive and there was no way of
distinguishing data polling and delayed ack.

So we add a distinct delack flag to the connect() function so that
the caller decides whether or not to use a delayed ack regardless
of pending data (eg: when send-proxy is in use). Doing so covers all
combinations of { (check with data), (sendproxy), (smart-connect) }.
include/proto/proto_tcp.h
include/proto/stream_interface.h
include/types/protocol.h
src/checks.c
src/proto_tcp.c