]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2: new function h2_peek_frame_hdr() to retrieve a new frame header
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Jul 2017 13:20:24 +0000 (15:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:12:14 +0000 (18:12 +0100)
commit715d5316e5f00a5ba7fdffcb5d7365e027a875d1
treef1665c48e9f007b7c00a8022dbc185497037fe1d
parente482074c96b6d6c19bacec13488ff77977670751
MINOR: h2: new function h2_peek_frame_hdr() to retrieve a new frame header

This function extracts the next frame header but doesn't consume it.
This will allow to detect a stream-id change and to perform a yielding
window update without losing information. The result is stored into a
temporary frame descriptor. We could also store the next frame header
into the connection but parsing the header again is much cheaper than
wasting bytes in the connection for a rare use case.

A function (h2_skip_frame_hdr()) is also provided to skip the parsed
header (always 9 bytes) and another one (h2_get_frame_hdr()) to do both
at once.
src/mux_h2.c