From b9c89111ab6aed67d0b26e2a65b6e6a680ec41ef Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 20 Apr 2015 01:08:05 +0200 Subject: [PATCH] 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. --- src/dumpstats.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 809025f2b..5a890e9dd 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -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); - } }