mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-01 22:48:25 +00:00
MEDIUM: dumpstats: don't unregister the applet anymore
Let the session do the job, the applet I/O handler doesn't have to unregister itself.
This commit is contained in:
parent
563cc37609
commit
b9c89111ab
@ -2439,11 +2439,6 @@ static void cli_io_handler(struct appctx *appctx)
|
||||
DPRINTF(stderr, "%s@%d: st=%d, rqf=%x, rpf=%x, rqh=%d, rqs=%d, rh=%d, rs=%d\n",
|
||||
__FUNCTION__, __LINE__,
|
||||
si->state, req->flags, res->flags, req->buf->i, req->buf->o, res->buf->i, res->buf->o);
|
||||
|
||||
if (unlikely(si->state == SI_ST_DIS || si->state == SI_ST_CLO)) {
|
||||
/* check that we have released everything then unregister */
|
||||
stream_int_unregister_handler(si);
|
||||
}
|
||||
}
|
||||
|
||||
/* This function dumps information onto the stream interface's read buffer.
|
||||
@ -4974,11 +4969,6 @@ static void http_stats_io_handler(struct appctx *appctx)
|
||||
/* we don't want to expire timeouts while we're processing requests */
|
||||
si_ic(si)->rex = TICK_ETERNITY;
|
||||
si_oc(si)->wex = TICK_ETERNITY;
|
||||
|
||||
if (unlikely(si->state == SI_ST_DIS || si->state == SI_ST_CLO)) {
|
||||
/* check that we have released everything then unregister */
|
||||
stream_int_unregister_handler(si);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user