]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: split the amount of rx data from the amount to ack
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2024 17:40:57 +0000 (19:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Oct 2024 14:29:15 +0000 (16:29 +0200)
commit560e474cdde1efa306ea3e6b2d0dcd425db0f76e
tree4aa5ab680c645eb5ebe368025b58b16dd7c5374b
parent8f09bdce102a6c20d8912270e53ddbbba7ee1be4
MINOR: mux-h2: split the amount of rx data from the amount to ack

We'll need to keep track of the total amount of data received for the
current stream, and the amount of data to ack for the current stream,
which might soon diverge as soon as we'll have to update the stream's
offset with received data, which are different from those to be ACKed.
One reason is that in case a stream doesn't exist anymore (e.g. aborted
an upload), the rcvd_s info might get lost after updating the stream,
so we do need to have an in-connection counter for that.

What's done here is that the rcvd_s count is transferred to wu_s in
h2c_send_strm_wu(), to be used as the counter to send, and both are
considered as sufficient when non-null to call the function.
src/mux_h2.c