]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: Don't check send_wait to know if we're in the send_list.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 10 May 2019 12:02:21 +0000 (14:02 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 10 May 2019 13:06:54 +0000 (15:06 +0200)
commitbfe2a83c244cc11e921216d177db1d0f523c948f
tree97be393ff97af07ce7b0b0558577833670280970
parent132f7b496ce238a4e619bdff4cc5d66b1b9409d0
BUG/MEDIUM: h2: Don't check send_wait to know if we're in the send_list.

When we have to stop sending due to the stream flow control, don't check
if send_wait is NULL to know if we're in the send_list, because at this
point it'll always be NULL, while we're probably in the list.
Use LIST_ISEMPTY(&h2s->list) instead.
Failing to do so mean we might be added in the send_list when flow control
allows us to emit again, while we're already in it.
While I'm here, replace LIST_DEL + LIST_INIT by LIST_DEL_INIT.

This should be backported to 1.9.
src/mux_h2.c