]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTESTS: http-messaging: fix the websocket and upgrade tests not to close early
authorWilly Tarreau <w@1wt.eu>
Tue, 7 Oct 2025 15:03:35 +0000 (17:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Oct 2025 08:29:41 +0000 (10:29 +0200)
commit687504344a4915238309d1aebbe3f509a7bfb35a
treee9f22b93aeabd1900a4208cbf0d7de9396907a87
parent8573c5e2a1a83d43d6b5f03082cac6292651836e
REGTESTS: http-messaging: fix the websocket and upgrade tests not to close early

By default when building an H2 request, vtest sets the END_STREAM flag
on the HEADERS frame. This is problematic with the websocket and proto
upgrade tests since we're using CONNECT, because it immediately closes
afterwards, which does not correspond to what we're testing. Doing this
in abortonclose mode rightfully produces an error. Let's fix the test
so as not to set the flag on the HEADERS frame. However, doing so means
we'll receive a window update that we must also accept. Now the test
works both with and without abortonclose.
reg-tests/http-messaging/protocol_upgrade.vtc
reg-tests/http-messaging/websocket.vtc