mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 05:11:26 +02:00
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.
This commit is contained in:
parent
f645cd3c74
commit
d75718af14
@ -1,5 +1,3 @@
|
|||||||
#REGTEST_TYPE=slow
|
|
||||||
|
|
||||||
# This teg-test verifies that automatic SNI selection for server conncetions and
|
# This teg-test verifies that automatic SNI selection for server conncetions and
|
||||||
# health checks.
|
# health checks.
|
||||||
|
|
||||||
@ -70,6 +68,7 @@ haproxy h1 -conf {
|
|||||||
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
|
||||||
|
default-server inter 100ms
|
||||||
|
|
||||||
frontend fe_ssl
|
frontend fe_ssl
|
||||||
bind "fd@${fe_ssl}" ssl crt ${testdir}/common.pem
|
bind "fd@${fe_ssl}" ssl crt ${testdir}/common.pem
|
||||||
@ -137,9 +136,9 @@ haproxy h1 -conf {
|
|||||||
|
|
||||||
} -start
|
} -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"
|
txreq -url "/test1" -hdr "host: www.test1.org:443"
|
||||||
rxresp
|
rxresp
|
||||||
expect resp.status == 200
|
expect resp.status == 200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user