BUG/MINOR: mux-h1: Obey dontlognull option for empty requests
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Jul 2021 07:42:49 +0000 (09:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Jul 2021 13:14:35 +0000 (15:14 +0200)
commit07e10deb36642666372469a71b1cc92602bde9db
tree8413c3e8c95176fdb7960c03a33032783b00ddcc
parent9def1425ce5c8c1db6589795cb171986d2a028a3
BUG/MINOR: mux-h1: Obey dontlognull option for empty requests

If a H1 connection is closed while no data are received, if the dontlognull
option is set, no log message must be emitted. Because the H1 multiplexer
handles early errors, it must take care to obey this option. It is true for
400-Bad-Request, 408-Request-Time-out and 501-Not-Implemented
responses. 500-Internal-Server-Error responses are still logged.

This patch should fix the issue #1336 for H1 sessions. It must be backported
to 2.4.
src/mux_h1.c