BUG/MEDIUM: h2: Try to be fair when sending data.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 22 Mar 2019 16:37:16 +0000 (17:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Mar 2019 17:05:03 +0000 (18:05 +0100)
commitd360ac60f45fc252c184b6b32da9a7cbd944ef4e
tree31095f525f9901a88f768602e2c20f1eb4748308
parent594c456d147b02dbe264566a5c9f52b85b36952d
BUG/MEDIUM: h2: Try to be fair when sending data.

On the send path, try to be fair, and make sure the first to attempt to
send data will actually be the first to send data when it's possible (ie
when the mux' buffer is not full anymore).
To do so, use a separate list element for the sending_list, and only remove
the h2s from the send_list/fctl_list if we successfully sent data. If we did
not, we'll keep our place in the list, and will be able to try again next time.

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