From d75718af1465687353c947fd5ab02ce5638ff1a2 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 8 Sep 2025 15:12:56 +0200 Subject: [PATCH] REGTESTS: ssl: Fix the script about automatic SNI selection First, the barrier to delay the client execution was moved before the client definition. Otherwise, the connection is established too early and with short timeouts it could be closed before the requests are sent. The main purpose of the barrier was to workaround slow health-checks. This is also the reason why the script was flagged as slow. But it can be significantly speed-up by setting a slow "inter" value. It is now set to 100ms and the script is no longer slow. --- reg-tests/ssl/ssl_sni_auto.vtc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reg-tests/ssl/ssl_sni_auto.vtc b/reg-tests/ssl/ssl_sni_auto.vtc index 99d073789..709b9599e 100644 --- a/reg-tests/ssl/ssl_sni_auto.vtc +++ b/reg-tests/ssl/ssl_sni_auto.vtc @@ -1,5 +1,3 @@ -#REGTEST_TYPE=slow - # This teg-test verifies that automatic SNI selection for server conncetions and # health checks. @@ -70,6 +68,7 @@ haproxy h1 -conf { timeout connect "${HAPROXY_TEST_TIMEOUT-5s}" timeout client "${HAPROXY_TEST_TIMEOUT-5s}" timeout server "${HAPROXY_TEST_TIMEOUT-5s}" + default-server inter 100ms frontend fe_ssl bind "fd@${fe_ssl}" ssl crt ${testdir}/common.pem @@ -137,9 +136,9 @@ haproxy h1 -conf { } -start -client c1 -connect ${h1_li_sock} { - barrier b1 sync +barrier b1 sync +client c1 -connect ${h1_li_sock} { txreq -url "/test1" -hdr "host: www.test1.org:443" rxresp expect resp.status == 200