fix -m with QUIC

see the comments
This commit is contained in:
Frederic Lecaille 2026-06-22 16:45:32 +02:00
parent ff434c5a19
commit faea9078a5

View file

@ -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);