]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: Fix h1_to_h2_upgrade.vtc to force h2 on first bind line
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 May 2026 14:15:54 +0000 (16:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 May 2026 14:19:10 +0000 (16:19 +0200)
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.

reg-tests/http-messaging/h1_to_h2_upgrade.vtc

index 30f668fe399aae926680069a8c89bea957041ce7..e5d76da4cb686a14b20e0feb33deec963252499a 100644 (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