]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h2: Make sure we're not already in the send_list in h2_subscribe().
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 15 Apr 2019 17:22:24 +0000 (19:22 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 15 Apr 2019 17:27:57 +0000 (19:27 +0200)
commit9a0f559676c4d309edbe42ba33197e7dd8935f1c
tree5df6bb56a1b09c992840c1f2669b1b33cb0fa248
parent0e0793715cafe07dab722b2d28c4825eab84f5fc
BUG/MEDIUM: h2: Make sure we're not already in the send_list in h2_subscribe().

In h2_subscribe(), don't add ourself to the send_list if we're already in it.
That may happen if we try to send and fail twice, as we're only removed
from the send_list if we managed to send data, to promote fairness.
Failing to do so can lead to either an infinite loop, or some random crashes,
as we'd get the same h2s in the send_list twice.

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