]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream_interface: don't call chk_snd() on polled events
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2013 20:09:48 +0000 (22:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Jul 2013 07:31:55 +0000 (09:31 +0200)
commit5007d2aa33c25f521f94733af56422062f80ba4b
treef712e6958d1a536112fc5195a82236253c3d6109
parent61d39a0e2a047df78f7f3bfcf5584090913cdc65
BUG/MINOR: stream_interface: don't call chk_snd() on polled events

As explained in previous patch, we incorrectly call chk_snd() when
performing a read even if the write event is already subscribed to
poll(). This is counter-productive because we're almost sure to get
an EAGAIN.

A quick test shows that this fix halves the number of failed splice()
calls without adding any extra work on other syscalls.

This could have been tagged as an improvement, but since this behaviour
made the analysis of previous bug more complex, it still qualifies as
a fix.
src/stream_interface.c