From: Willy Tarreau Date: Sun, 19 Apr 2015 23:08:05 +0000 (+0200) Subject: MEDIUM: dumpstats: don't unregister the applet anymore X-Git-Tag: v1.6-dev2~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9c89111ab6aed67d0b26e2a65b6e6a680ec41ef;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/dumpstats.c b/src/dumpstats.c index 809025f2ba..5a890e9dd0 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); - } }