From e373fd6319f0c5beaf539f063f7898c0c3a40a1b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 5 May 2026 08:44:28 +0200 Subject: [PATCH] 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. --- src/haterm.c | 9 --------- 1 file changed, 9 deletions(-) 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;