]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http-ana: Don't process partial or empty request anymore
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 15:54:56 +0000 (17:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commit8bebd2fe52338194b9d0b2d622eab35b6a17533f
tree6103f762881c0f21cb869c4fd861c896963c2218
parent2afd874704647690d7bbb6953d9027fac08d5d89
MEDIUM: http-ana: Don't process partial or empty request anymore

It is now impossible to start the HTTP request processing in the stream
analysers with a partial or empty request message. The mux-h2 was already
waiting of the request headers before creating the stream. Now the mux-h1
does the same. All errors (aborts, timeout or invalid requests) waiting for
the request headers are now handled by the multiplexers. So there is no
reason to still handle them in the REQ_WAIT_HTTP (http_wait_for_request)
analyser.

To ensure there is no ambiguity, a BUG_ON() was added to exit if a partial
request is received in this analyser.
src/http_ana.c