MINOR: stream-int: rename si_applet_done() to si_applet_wake_cb()
This function is a callback made only for calls from the applet handler.
Rename it to remove confusion. It's currently called from the Lua code
but that's not correct, we should call the notify and update functions
instead otherwise it will not enable the applet again.
diff --git a/src/hlua.c b/src/hlua.c
index 97adb51..ceeeace 100644
--- a/src/hlua.c
+++ b/src/hlua.c
@@ -1735,7 +1735,7 @@
bo_skip(oc, len + skip_at_end);
/* Don't wait anything. */
- si_applet_done(&socket->s->si[0]);
+ si_applet_wake_cb(&socket->s->si[0]);
/* If the pattern reclaim to read all the data
* in the connection, got out.
@@ -1912,7 +1912,7 @@
}
/* update buffers. */
- si_applet_done(&socket->s->si[0]);
+ si_applet_wake_cb(&socket->s->si[0]);
socket->s->req.rex = TICK_ETERNITY;
socket->s->res.wex = TICK_ETERNITY;