]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: don't consider pending data on detach if connection is in error
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Mar 2018 13:41:32 +0000 (15:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 29 Mar 2018 13:41:32 +0000 (15:41 +0200)
commit3041fcc2fde3f3f33418c9f579b657d993b0006d
treee6ea2f148c8bcbfd1feac9d5bc1cb6cb08317e1a
parent0975f11d554baf30602ce4be3faf0b9741711a80
BUG/MEDIUM: h2: don't consider pending data on detach if connection is in error

Interrupting an h2load test shows that some connections remain active till
the client timeout. This is due to the fact that h2_detach() immediately
returns if the h2s flags indicate that the h2s is still waiting for some
buffer room in the output mux (possibly to emit a response or to send some
window updates). If the connection is broken, these data will never leave
and must not prevent the stream from being terminated nor the connection
from being released.

This fix must be backported to 1.8.
src/mux_h2.c