]> git.kaiwu.me - haproxy.git/commit
MINOR: h3: refactor SETTINGS parsing/error reporting
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 24 May 2022 16:16:49 +0000 (18:16 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 May 2022 13:41:25 +0000 (15:41 +0200)
commit8c6176b8dbc645a601aac24e69311544463c0fcc
tree89d1fb7cf82abdf3252d43e893b235fc9ab730e0
parent849b24f15bf3de6ba03290688023330c0de14578
MINOR: h3: refactor SETTINGS parsing/error reporting

Bring some improvment to h3_parse_settings_frm() function. The first one
is the parsing which now manipulates a buffer instead of a plain char*.
This is more to unify with other parsing functions rather than dealing
with data wrapping : it's unlikely to happen as SETTINGS is only
received as the first frame on the control STREAM.

Various errors are now properly reported as connection error :
* on incomplete frame payload
* on a duplicated settings in the same frame
* on reserved settings receive
include/haproxy/h3.h
src/h3.c