]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: increase some short timeouts to make tests more reliable
authorWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2020 05:26:08 +0000 (07:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2020 05:30:34 +0000 (07:30 +0200)
A few regtests continue to regularly fail in highly loaded VMs because
they have very short timeouts. Actually the goal of running with short
timeouts was to make sure we do not uselessly wait during tests designed
to trigger them, but these timeouts here are never supposed to fire at
all, so they don't need to be kept in the 15-20ms range. They do not
pose any issue on any regular machine, but VMs are often suffering from
huge time jumps and cannot always produce responses in that short of a
time.

Just like with commit ce6fc25b1 ("REGTEST: increase timeouts on the
seamless-reload test"), let's raise these short timeouts to 1 second.
A few other ones remain set to 150-200ms and do not seem to cause any
issue. Some are actually expected to trigger so let's not touch them
for now.

reg-tests/http-rules/acl_cli_spaces.vtc
reg-tests/http-rules/converters_ipmask_concat_strcmp_field_word.vtc
reg-tests/http-rules/map_redirect.vtc
reg-tests/http-rules/map_regm_with_backref.vtc

index e67f7ce5a5b087e16707db69557e0644d166eff6..55919ea40aa5d2f71603c208bc7408e07aced3e2 100644 (file)
@@ -15,9 +15,9 @@ haproxy h1 -W -S -conf {
     ${no-htx} option http-use-htx
     log global
     option httplog
-    timeout connect         15ms
-    timeout client          20ms
-    timeout server          20ms
+    timeout connect         1s
+    timeout client          1s
+    timeout server          1s
 
   frontend fe1
     bind "fd@${fe1}"
index 7149b183e562468479f6d8c508de4b4c5bebea3f..3ba47aab5071780069abd669056f9c8a46eba663 100644 (file)
@@ -75,9 +75,9 @@ haproxy h1 -conf {
     ${no-htx} option http-use-htx
     log global
     option httplog
-    timeout connect         15ms
-    timeout client          20ms
-    timeout server          20ms
+    timeout connect         1s
+    timeout client          1s
+    timeout server          1s
 
   frontend fe1
     # accept-proxy so test client can send src ip
@@ -131,9 +131,9 @@ haproxy h2 -conf {
     ${no-htx} option http-use-htx
     log global
     option httplog
-    timeout connect         15ms
-    timeout client          20ms
-    timeout server          20ms
+    timeout connect         1s
+    timeout client          1s
+    timeout server          1s
 
   frontend fe2
     bind "fd@${fe2}"
index 99512918724eb5a75a4362bff50a9cc5155564cf..c4a2fbe3e115bbe23df2ffb56e319bc0dcbc89ee 100644 (file)
@@ -38,9 +38,9 @@ haproxy h1 -conf {
     ${no-htx} option http-use-htx
     log global
     option httplog
-    timeout connect         15ms
-    timeout client          20ms
-    timeout server          20ms
+    timeout connect         1s
+    timeout client          1s
+    timeout server          1s
 
   frontend fe1
     bind "fd@${fe1}"
index 502e8d376f8b6e4127aad62e583a994025f8b241..49372694854dae17b84724e46e3e8cedcf86df1f 100644 (file)
@@ -46,9 +46,9 @@ haproxy h1 -conf {
     ${no-htx} option http-use-htx
     log global
     option httplog
-    timeout connect         15ms
-    timeout client          20ms
-    timeout server          20ms
+    timeout connect         1s
+    timeout client          1s
+    timeout server          1s
 
   frontend fe1
     bind "fd@${fe1}"