mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUG/MEDIUM: stconn: Don't forget to wakeup applets on shutdown
When SC's shudown callback functions were merged, a regression was introduced. The applet was no longer woken up. Because of this bug, an applet could remain blocked, waiting for an I/O event or a timeout. This patch should fix the issue #3301. No backport needed.
This commit is contained in:
parent
ab7acdcc3a
commit
00bea05a14
@ -621,6 +621,11 @@ void sc_shutdown(struct stconn *sc)
|
||||
sc_set_hcto(sc);
|
||||
sc_report_term_evt(sc, strm_tevt_type_shutw);
|
||||
|
||||
if (sc_ep_test(sc, SE_FL_T_APPLET)) {
|
||||
/* on shutw we always wake the applet up */
|
||||
appctx_wakeup(__sc_appctx(sc));
|
||||
}
|
||||
|
||||
switch (sc->state) {
|
||||
case SC_ST_RDY:
|
||||
case SC_ST_EST:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user