]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream: remove an obsolete debugging test
authorWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 14:18:13 +0000 (16:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 14:19:40 +0000 (16:19 +0200)
The test consisted in checking that there was always a timeout on a
stream's task and was only enabled when built in development mode,
but 1) it is never tested and 2) if it had been tested it would have
been noticed that it triggers a bit too easily on the CLI. Let's get
rid of this old one.

src/stream.c

index 2b2d39939efbedf0c1a2c730a104ebda7cb5ef62..f0c7ad21f73aefc135d3e33a34ff9bbac66987a4 100644 (file)
@@ -2634,11 +2634,6 @@ redo:
                        now_ms, t->expire, req->rex, req->wex, req->analyse_exp,
                        res->rex, res->wex, si_f->exp, si_b->exp, si_f->state, si_b->state);
 
-#ifdef DEBUG_DEV
-               /* this may only happen when no timeout is set or in case of an FSM bug */
-               if (!tick_isset(t->expire))
-                       ABORT_NOW();
-#endif
                s->pending_events &= ~(TASK_WOKEN_TIMER | TASK_WOKEN_RES);
                stream_release_buffers(s);
                /* We may have free'd some space in buffers, or have more to send/recv, try again */