]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: proto_http: don't enable quick-ack on empty buffers
authorWilly Tarreau <w@1wt.eu>
Sun, 13 May 2012 06:44:16 +0000 (08:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 May 2012 06:44:16 +0000 (08:44 +0200)
commit93548be1498ee6de88f3bc696f82bf5297a79b53
treeb879442c3fb52dc6e2d73ce11bca992b8a1a023b
parentb147a8382a9a740b511da35976102331ea318ca0
OPTIM: proto_http: don't enable quick-ack on empty buffers

Commit 5e205524 was a bit overzealous by inconditionally enabling
quick ack when a request is not yet in the buffer, because it also
does so when nothing has been received yet, causing a useless ACK
to be emitted.

Improve the situation by doing this only if the input buffer is
empty (indicating that nothing was sent by the client).

In case of keep-alive, an empty buffer means we already have a
response in flight which will serve as an ACK.
src/proto_http.c