commit | 6f4a82c7aff31d4fd29294a3294bcd5ad1201cd1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Mar 21 20:43:57 2009 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sat Mar 21 20:43:57 2009 +0100 |
tree | 878f2089548dace608b0e321b5462e05f8f6ba2b | |
parent | e38388033f3df181ff6a2ee227789cd743d17dc1 [diff] |
[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.