]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h2: don't needlessly wake up the demux on short frames
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Dec 2018 15:09:41 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Dec 2018 15:12:33 +0000 (16:12 +0100)
commit47b515a462fbd99c204c2bebca49190f2ef00104
treeef2bc388a62ac5b73c636370c50ce2146fb28132
parente98ce25b61387522a29f62ee779ba9bf60805bd2
BUG/MEDIUM: mux-h2: don't needlessly wake up the demux on short frames

In some situations, if too short a frame header is received, we may leave
h2_process_demux() waking up the task again without checking that we were
already subscribed.

In order to avoid this once for all, let's introduce an h2_restart_reading()
function which performs the control and calls the task up. This way we won't
needlessly wake the task up if it's already waiting for I/O.

Must be backported to 1.9.
src/mux_h2.c