commit | d846c267d5515713458e76d88bc9cbf358058b86 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Fri Oct 19 17:24:29 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Oct 21 06:00:13 2018 +0200 |
tree | accdeb7b9e2135cf93aebcaaed1906f5989d7ad9 | |
parent | 3f03ab5b1500ee93c0bc2b399ee263c8e74bd100 [diff] |
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.