]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux-h1: Split h1_process_mux() to make code more readable
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:33:01 +0000 (13:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Jun 2023 11:33:01 +0000 (13:33 +0200)
commit723c73f8a7df82d4d419cfb8c7546bb22d919316
treec82e6d2ab1fbce2317010700bd08cafd66d31af8
parent8fe3a33328eed8e9203058b55f9d22572ca085fa
MEDIUM: mux-h1: Split h1_process_mux() to make code more readable

h1_process_mux() function was pretty huge a quite hard to debug. So, the
funcion is split in sub-functions. Each sub-function is responsible to a
part of the message (start-line, headers, payload, trailers...). We are
still relying on a HTTP parser to format the message to be sure to detect
errors.  Functionnaly speaking, there is no change. But the code is now more
readable.
src/mux_h1.c