haproxy/reg-tests/http-messaging
Christopher Faulet 9704797fa2 BUG/MEDIUM: http-ana: Properly switch the request in tunnel mode on upgrade
Since the commit f2b02cfd9 ("MAJOR: http-ana: Review error handling during
HTTP payload forwarding"), during the payload forwarding, we are analyzing a
side, we stop to test the opposite side. It means when the HTTP request
forwarding analyzer is called, we no longer check the response side and vice
versa.

Unfortunately, since then, the HTTP tunneling is broken after a protocol
upgrade. On the response is switch in TUNNEL mode. The request remains in
DONE state. As a consequence, data received from the server are forwarded to
the client but not data received from the client.

To fix the bug, when both sides are in DONE state, both are switched in same
time in TUNNEL mode if it was requested. It is performed in the same way in
http_end_request() and http_end_response().

This patch should fix the issue #2125. It is 2.8-specific. No backport
needed.
2023-04-17 16:17:35 +02:00
..
common.pem MINOR: server: add ws keyword 2021-11-03 16:24:48 +01:00
h1_host_normalization.vtc REG-TESTS: http: Add more tests about authority/host matching 2022-11-22 17:49:10 +01:00
h1_to_h1.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
h2_desync_attacks.vtc REGTESTS: add a test to prevent h2 desync attacks 2021-08-17 10:22:20 +02:00
h2_to_h1.vtc REGTESTS: Remove REQUIRE_VERSION=1.9 from all tests 2023-01-05 09:11:38 +01:00
http_abortonclose.vtc REGTESTS: http_abortonclose: Extend supported versions 2022-06-07 08:21:54 +02:00
http_bodyless_response.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
http_msg_full_on_eom.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
http_request_buffer.vtc MAJOR: http-ana: Review error handling during HTTP payload forwarding 2023-01-13 11:18:23 +01:00
http_splicing.vtc REGTESTS: Skip http_splicing.vtc script if fast-forward is disabled 2023-02-21 11:44:55 +01:00
http_transfer_encoding.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
http_wait_for_body.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
protocol_upgrade.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
scheme_based_normalize.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
srv_ws.vtc REGTESTS: extend the default I/O timeouts and make them overridable 2021-11-18 17:57:11 +01:00
websocket.vtc BUG/MEDIUM: http-ana: Properly switch the request in tunnel mode on upgrade 2023-04-17 16:17:35 +02:00