]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: Don't subscribe for receives once read0 or error received
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 14:17:36 +0000 (16:17 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:10:27 +0000 (19:10 +0200)
commit50d20c9b8992ae25d37a381a7f5e8b643504b1f9
treed81783fdacba69dadf7d053a63786e1c15e479a5
parent15be046d48fa06cd507f5e13714f112183f2174c
BUG/MINOR: mux-h1: Don't subscribe for receives once read0 or error received

In h1_rcv_buf(), we no longer subscribe for reads once a read0 or an error
was received. Nothing can be read anymore, and the subscription itself is
useless. In addition, since the socket remains readable at EOF, the
connection could theoretically be woken up again and again, waking the
stream up in turn, which would make the process spin until the server
responds. No reliable reproducer was found for this, but it is safer to
not subscribe for reads when no more data can ever be received.

This patch could be backported to all supported versions.
src/mux_h1.c