]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2: add h2_set_frame_size() to update the size in a binary frame
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Jul 2017 11:37:23 +0000 (13:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:12:14 +0000 (18:12 +0100)
commite482074c96b6d6c19bacec13488ff77977670751
tree31deb61fa76dcb4b3294b7c26c53b08e2f30d26a
parent2e43f08c60c738af1fbb4d2d1e32d5bc4036a69f
MINOR: h2: add h2_set_frame_size() to update the size in a binary frame

This function is called after preparing a frame, in order to update the
frame's size in the frame header. It takes the frame payload length in
argument.

It simply writes a 24-bit frame size into a buffer, making use of the
net_helper functions which try to optimize per platform (this is a
frequently used operation).
src/mux_h2.c