]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] stream_sock: don't retry to read after a large read
authorWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 19:43:57 +0000 (20:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 21 Mar 2009 19:43:57 +0000 (20:43 +0100)
commit6f4a82c7aff31d4fd29294a3294bcd5ad1201cd1
tree878f2089548dace608b0e321b5462e05f8f6ba2b
parente38388033f3df181ff6a2ee227789cd743d17dc1
[OPTIM] stream_sock: don't retry to read after a large read

If we get very large data at once, it's almost certain that it's
worthless trying to read again, because we got everything we could
get.

Doing this has made all -EAGAIN disappear from splice reads. The
threshold has been put in the global tunable structures so that if
we one day want to make it accessible from user config, it will be
easy to do so.
include/common/defaults.h
include/types/global.h
src/haproxy.c
src/stream_sock.c