]> git.kaiwu.me - haproxy.git/commit
MINOR: mux-h2: simplify the wake up code in h2_rcv_buf()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Oct 2024 12:49:45 +0000 (14:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Oct 2024 14:29:16 +0000 (16:29 +0200)
commitb74bedf1579be48ddec1ed5e28b22647e790d991
tree4ff91ebc1fdcd6a37b8761294a3f1416a46f1d98
parenta0ed92f3ddcbd69b5760ba4afc92d8f0bd86818a
MINOR: mux-h2: simplify the wake up code in h2_rcv_buf()

The code used to decide when to restart reading is far from being trivial
and will cause trouble after the forthcoming changes: it checks if the
current stream is the same that is being demuxed, and only if so, wakes
the demux to restart reading. Once streams will start to use multiple
buffers, this condition will make no sense anymore. Actually the real
reason is split into two steps:
  - detect if the demux is currently blocked on the current stream, and
    if so remove SFULL
  - detect if any demux blocking flags were removed during the operations,
    and if so, wake demuxing.

For now this doesn't change anything.
src/mux_h2.c