1 commit 1526ce4e6f5fb241ca236bd2ac870cdb30e054fd
2 Author: Christopher Faulet <cfaulet@haproxy.com>
3 Date: Tue Apr 23 15:39:32 2019 +0200
5 BUG/MINOR: spoe: Don't systematically wakeup SPOE stream in the applet handler
7 This can lead to wakeups in loop between the SPOE stream and the SPOE applets
8 waiting to receive agent messages (mainly AGENT-HELLO and AGENT-DISCONNECT).
10 This patch must be backported to 1.9 and 1.8.
12 (cherry picked from commit 371723b0c2a2e38ae14e1e6f6a7581ef3e2491cf)
13 Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
14 (cherry picked from commit fe0ccea6bb93406ca0a7339cdf17357b1a283e59)
15 Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
17 diff --git a/src/flt_spoe.c b/src/flt_spoe.c
18 index 95f30898..f6109778 100644
21 @@ -1929,8 +1929,6 @@ spoe_handle_appctx(struct appctx *appctx)
23 if (SPOE_APPCTX(appctx)->task->expire != TICK_ETERNITY)
24 task_queue(SPOE_APPCTX(appctx)->task);
25 - si_oc(si)->flags |= CF_READ_DONTWAIT;
26 - task_wakeup(si_strm(si)->task, TASK_WOKEN_IO);
29 struct applet spoe_applet = {