From faea9078a55878e6a71c6d356babc7509f76ac4e Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Mon, 22 Jun 2026 16:45:32 +0200 Subject: [PATCH] fix -m with QUIC see the comments --- src/haload.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/haload.c b/src/haload.c index 0c2be6b4a..f95bceefa 100644 --- a/src/haload.c +++ b/src/haload.c @@ -1259,7 +1259,12 @@ struct task *hld_strm_task(struct task *t, void *context, unsigned int state) /* Note that the user task will release all the expired streams * attached to it. */ - task_wakeup(usr->task, TASK_WOKEN_IO); + /* Note that for QUIC, the number of available streams is not + * incremented as soon as a stream is completed (fin=1). + * For H1, here this number is always 0. + */ + if (!url->cfg->is_quic || hs->conn->mux->avail_streams(hs->conn)) + task_wakeup(usr->task, TASK_WOKEN_IO); LIST_DELETE(&hs->list); hldstream_free(&hs);