]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: applet: now call si_applet_done() instead of si_update() in I/O handlers
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Apr 2015 15:20:03 +0000 (17:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 15:56:16 +0000 (17:56 +0200)
commit828824af05c142eaf8796865e9bce94d978a9951
treec1059b8e4b92dd0ec425c48e39a338e0dd4e6aef
parente5f8649102f7a869addfa1abc425eb74208663b3
MAJOR: applet: now call si_applet_done() instead of si_update() in I/O handlers

The applet I/O handlers now rely on si_applet_done() which itself decides
to wake up or sleep the appctx. Now it becomes critical that applte handlers
properly call this on every exit path so that the appctx is removed from the
active list after I/O have been handled. One such call was added to the Lua
socket handler. It used to work without it probably because the main task is
woken up by the parent task but now it's needed.
src/dumpstats.c
src/hlua.c
src/peers.c
src/stream_interface.c