]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2: Don't run tasks that are waiting to send if mux in full.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 19 Oct 2018 15:24:29 +0000 (17:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Oct 2018 04:00:13 +0000 (06:00 +0200)
commitd846c267d5515713458e76d88bc9cbf358058b86
treeaccdeb7b9e2135cf93aebcaaed1906f5989d7ad9
parent3f03ab5b1500ee93c0bc2b399ee263c8e74bd100
MINOR: h2: Don't run tasks that are waiting to send if mux in full.

We wake up all the streams waiting to send data when we have space available
in the mux buffer. Doing so means we probably wake way too many streams,
because after a few the buffer will probably be full instead. So keep a
list of all the streams that are about to send data, and if we detect that
the buffer is full, unschedule the tasks and put the streams back to the
send_list.
src/mux_h2.c