]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: dumpstats: don't unregister the applet anymore
authorWilly Tarreau <w@1wt.eu>
Sun, 19 Apr 2015 23:08:05 +0000 (01:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2015 15:56:16 +0000 (17:56 +0200)
Let the session do the job, the applet I/O handler doesn't have to unregister
itself.

src/dumpstats.c

index 809025f2bae9cd700fa01ef29dd62037e0cc4ab0..5a890e9dd02a501eb945fc92992e40a3f459f6ce 100644 (file)
@@ -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);
-       }
 }