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.
-#REGTEST_TYPE=slow
-
# This teg-test verifies that automatic SNI selection for server conncetions and
# health checks.
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
} -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