]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: force reads to be HTX-aligned in HTX mode
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Dec 2018 07:23:47 +0000 (08:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Dec 2018 10:52:45 +0000 (11:52 +0100)
commit2a59e877350ad41f7b985cbf202e49543fd8a487
tree1d16306c4b035d83bafb9d845e68adabb53290b5
parent98de12a5d16e77ef7383a121b69138af6327fde1
MINOR: mux-h2: force reads to be HTX-aligned in HTX mode

H2 has a 9-byte frame header, and HTX has a 40-byte frame header.
By artificially advancing the Rx header and limiting the amount of
bytes read to protect the end of the buffer, we can make the data
payload perfectly aligned with HTX blocks and optimize the copy.
src/mux_h2.c