MINOR: mux-h2: obey http-ignore-probes during the preface
authorWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 06:08:48 +0000 (08:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jun 2021 06:08:48 +0000 (08:08 +0200)
commitee4684f65b6ea627e34395d254daf7971d3ed90f
treee792ef4aa7d80152eeeb4af4c6ee39e23cc5461f
parentfc8e438637aa926e681c8b7f3fa061021dfb2201
MINOR: mux-h2: obey http-ignore-probes during the preface

We're seeing some browsers setting up multiple connections and closing
some to just keep one. It looks like they do this in case they'd
negotiate H1. This results in aborted prefaces and log pollution about
bad requests and "PR--" in the status flags.

We already have an option to ignore connections with no data, it's called
http-ignore-probes. But it was not used by the H2 mux. However it totally
makes sense to use it during the preface.

This patch changes this so that connections aborted before sending the
preface can avoid being logged.

This should be backported to 2.4 and 2.3 at least, and probably even
as far as 2.0.
src/mux_h2.c