]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] stream_interface: fix the wakeup conditions for embedded iohandlers
authorWilly Tarreau <w@1wt.eu>
Mon, 9 Aug 2010 14:24:56 +0000 (16:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Aug 2010 15:47:17 +0000 (17:47 +0200)
commit3488e2548f818e5402cfe1b67de41888ef49774c
treead3234680ba2c4595daef63328549f39da3f16ac
parent01312690f73a4c2cbd802a191889051a37b38861
[MAJOR] stream_interface: fix the wakeup conditions for embedded iohandlers

Now we stop relying on BF_READ_DONTWAIT, which is unrelated to the
wakeups, and only consider activity to decide whether to wake the task
up instead of considering the other side's activity. It is worth noting
that the local stream interface's flags were not updated consecutively
to a call to chk_snd(), which could possibly result in hung tasks from
time to time. This fix will avoid possible loops and uncaught events.
src/stream_interface.c