]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] read optimizations based on the MSS
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Mar 2007 22:02:09 +0000 (23:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Mar 2007 22:02:09 +0000 (23:02 +0100)
commit9641e8f6ee293c478a0c2283d1cc8d5b75bfc1d3
tree505d2ecb0aee344c961a549d7ebe6a6dcd3ae189
parentb8949f1ed0cc13dd9fd75a7b08bbc976b2f508cc
[MINOR] read optimizations based on the MSS

Generally, if a recv() returns less bytes than the MSS, it means that
there is nothing left in the system's buffers, and that it's not worth
trying to read again because we are very likely to get nothing. A
default read low limit has been set to 1460 bytes below which we stop
reading.

This has brought a little speed boost on small objects while maintaining
the same speed on large objects.
include/common/defaults.h
src/stream_sock.c