mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: spoe: Properly switch SPOE filter to WAITING_ACK state
When the SPOE applet is created, the SPOE filter is set in SENDING_MSGS state. When the applet has transferred data, it should switch the filter to WAITING_ACK state. Concretly, there is no bug. At best, it could save some useless applet wakeups. This patch should be backported as far as 3.1
This commit is contained in:
parent
00bea05a14
commit
d10fc3d265
1 changed files with 5 additions and 2 deletions
|
|
@ -516,8 +516,11 @@ static void spoe_handle_appctx(struct appctx *appctx)
|
|||
appctx->st0 = SPOE_APPCTX_ST_END;
|
||||
applet_set_error(appctx);
|
||||
}
|
||||
else if (!spoe_handle_receiving_frame_appctx(appctx))
|
||||
break;
|
||||
else {
|
||||
SPOE_APPCTX(appctx)->spoe_ctx->state = SPOE_CTX_ST_WAITING_ACK;
|
||||
if (!spoe_handle_receiving_frame_appctx(appctx))
|
||||
break;
|
||||
}
|
||||
goto switchstate;
|
||||
|
||||
case SPOE_APPCTX_ST_EXIT:
|
||||
|
|
|
|||
Loading…
Reference in a new issue