REGTESTS: Fix h1_to_h2_upgrade.vtc to force h2 on first bind line

With VTEST, It seems possible to receive the H2 preface in 2 packets. So the
preface cannot be matched and the H1 to H2 upgrade is not performed as
expected. The script was fixed by forcing the H2 proto on the first bind
line.

The problem with the preface matching will be reviewed later.
This commit is contained in:
Christopher Faulet 2026-05-07 16:15:54 +02:00
parent 5f91cf1b7d
commit 972d0a4183

View File

@ -28,7 +28,7 @@ haproxy h1 -conf {
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
listen feh1
bind "fd@${feh1}"
bind "fd@${feh1}" proto h2
bind "fd@${feh2}" proto h1
server s1 ${s1_addr}:${s1_port}
} -start