haproxy/include
Willy Tarreau 1b194fe03e [OPTIM] buffer: new BF_READ_DONTWAIT flag reduces EAGAIN rates
When the reader does not expect to read lots of data, it can
set BF_READ_DONTWAIT on the request buffer. When it is set,
the stream_sock_read callback will not try to perform multiple
reads, it will return after only one, and clear the flag.
That way, we can immediately return when waiting for an HTTP
request without trying to read again.

On pure request/responses schemes such as monitor-uri or
redirects, this has completely eliminated the EAGAIN occurrences
and the epoll_ctl() calls, resulting in a performance increase of
about 10%. Similar effects should be observed once we support
HTTP keep-alive since we'll immediately disable reads once we
get a full request.
2009-03-21 21:57:30 +01:00
..
common [OPTIM] stream_sock: don't retry to read after a large read 2009-03-21 20:43:57 +01:00
import [MAJOR] replace ultree with ebtree in wait-queues 2008-06-24 08:17:16 +02:00
proto [MINOR] stats: report number of tasks (active and running) 2009-03-21 18:33:52 +01:00
types [OPTIM] buffer: new BF_READ_DONTWAIT flag reduces EAGAIN rates 2009-03-21 21:57:30 +01:00