]> git.kaiwu.me - haproxy.git/commit
MINOR: h1: h1_release() should return if it destroyed the connection
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 14 Nov 2025 11:33:33 +0000 (12:33 +0100)
committerOlivier Houchard <cognet@ci0.org>
Fri, 14 Nov 2025 11:49:35 +0000 (12:49 +0100)
commit2f8f09854f83179252e05ace14286459b5888418
treecbf577fcadbad834e82a62dad8553c04ce04a8e9
parent14a333c4f4a81161b9e100c1e7c4bb41e916ac6d
MINOR: h1: h1_release() should return if it destroyed the connection

h1_release() is called to destroy everything related to the mux h1,
usually even the connection. However, it handles upgrades to HTTP/2 too,
in which case the h1 mux will be destroyed, but the connection will
still be alive. So make it so it returns 0 if everything is destroyed,
and -1 if the connection is still alive.

This should be backported up to 2.8, as a future bugfix will depend on
it.
src/mux_h1.c