MEDIUM: h1-htx: Adapt H1 data parsing to copy wrapping data in one call
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Feb 2021 18:40:07 +0000 (19:40 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 May 2021 08:41:50 +0000 (10:41 +0200)
commitf7c2044f8f164c8d05980022a2b4e94f57912af1
tree9fab19764e9a0998ea5479b95b428328955761ad
parentde471a4a8d0a7cb57c5b41b3555d004ff97ebbed
MEDIUM: h1-htx: Adapt H1 data parsing to copy wrapping data in one call

Since the beginning, wrapping input data are parsed and copied in 2 steps to
not deal with the wrapping in H1 parsing functions. But there is no reason
to do so. This needs 2 calls to parsing functions. This also means, most of
time, when the input buffer does not wrap, there is an extra call for
nothing.

Thus, now, the data parsing functions try to copy as much data as possible,
handling wrapping buffer if necessary.
src/h1_htx.c