]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG: compression: disable auto-close and enable MSG_MORE during transfer
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 23:36:34 +0000 (01:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Oct 2012 23:36:34 +0000 (01:36 +0200)
commit08b4d79d314f3dcc052cc650c83f8dbc00f04b8a
treecf851f548c4edad1378a493d7e6816c7702aaba5
parent70737d142fd13ffc6a25f8c4199e4b10f9886461
BUG: compression: disable auto-close and enable MSG_MORE during transfer

We don't want the lower layer to forward a close while we're compressing,
and we want the system to fuse outgoing TCP segments using MSG_MORE as
much as possible to save round trips that can emerge from sending short
packets with a PUSH flag.

A test on a remote busy DSL line consisting in compressing a 100MB file
on the fly full of zeroes only showed a transfer rate of a few kB/s due
to these round trips.
src/proto_http.c