]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: extract config window-size parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Aug 2024 16:30:34 +0000 (18:30 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Aug 2024 14:07:22 +0000 (16:07 +0200)
commit280b61468a75b40d710a07ff232f69e5a9b42339
treea26f2f160b97866c9e4dd647595b44a8577d6874
parent5b6e8c4d4dc38e16b28c9980344a83ebbbc6bbbb
MINOR: quic: extract config window-size parsing

quic-cc-algo is a bind line keyword which allow to select a QUIC
congestion algorithm. It can take an optional integer to specify the
maximum window size. This value is an integer and support the suffixes
'k', 'm' and 'g' to specify respectively kilobytes, megabytes and
gigabytes.

Extract the maximum window size parsing in a dedicated function named
parse_window_size(). It accepts as input an integer value with an
optional suffix, 'k', 'm' or 'g'. The first invalid character is
returned by the function to the caller.

No functional change. This commit will allow to quickly implement a new
keyword to configure a default congestion window size in the global
section.
src/cfgparse-quic.c