From: Christopher Faulet Date: Tue, 5 May 2026 06:44:28 +0000 (+0200) Subject: CLEANUP: haterm: Remove duplicated bloc to know if haterm must drain X-Git-Tag: v3.4-dev11~42 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e373fd6319f0c5beaf539f063f7898c0c3a40a1b;p=haproxy.git CLEANUP: haterm: Remove duplicated bloc to know if haterm must drain When haterm was waiting for request headers, there was two test to know if it had to drain the request data before replying. One of them was useless and was thus removed. --- diff --git a/src/haterm.c b/src/haterm.c index 89d6d5ab5..05ec35e97 100644 --- a/src/haterm.c +++ b/src/haterm.c @@ -991,15 +991,6 @@ static struct task *process_hstream(struct task *t, void *context, unsigned int /* HTX send the start line and headers if not already sent */ if (!hstream_sl_hdrs_htx_buf_snd(hs, conn)) goto err; - - if (hstream_must_drain(hs)) { - /* The request must be drained before sending the response (HS_ST_OPT_REQ_AFTER_RES not set). - * The body will be drained upon next wakeup. - */ - TRACE_STATE("waking up task", HS_EV_HSTRM_IO_CB, hs); - task_wakeup(hs->task, TASK_WOKEN_IO); - goto out; - } } else { struct buffer *buf;