REGTESTS: http_upgrade: fix incorrect expectation on TCP->H1->H2
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Aug 2021 09:02:28 +0000 (11:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Aug 2021 09:02:28 +0000 (11:02 +0200)
commitab4fa24cd832bfd22b06c0dd49db8dfee3b69cc4
tree546b637851d600c8dc42428d0877959a5d772c36
parent0e72e40f7e25e5c3a6e9e64d5715776cfdec7fd3
REGTESTS: http_upgrade: fix incorrect expectation on TCP->H1->H2

Commit e1b9e1bb1 ("REGTESTS: Add script to tests TCP to HTTP upgrades")
included a mistake in the TCP->H1->H2 test, it expected a close while
it ought to expect a 400 bad req, which is what the mux returns in this
case. It happens that this used to work fine with older versions of
vtest which see the close regardless of the 400, but since Vtest commit
8d6c6bd ("Leak-plugging on barriers"), this doesn't work anymore.

Let's fix this by expecting the proper response. This should be backported
where this regtest is present, but only after verifying that it still
works; indeed at the time of writing it's uncertain whether an earlier
version used to immediately close.
reg-tests/connection/tcp_to_http_upgrade.vtc