]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: log/b00000: Be sure the client always hits its timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:33:19 +0000 (15:33 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Apr 2019 13:43:40 +0000 (15:43 +0200)
To do so, the server does not send anything. Instead it waits 2ms before
closing. The client, on its side, will wait for a response. So it will be
blocked. Becauase the client timeout is set to 1ms, HAProxy should always close
the client connection because it times out.

reg-tests/log/b00000.vtc

index 53387048cbfb9ed851c2597bddc9614cb8373080..bd4ba0fd3554a6aff7a40663cd5f464fcc53c4ca 100644 (file)
@@ -23,7 +23,7 @@ feature ignore_unknown_macro
 
 server s1 {
     rxreq
-    txresp
+    delay 0.02
 } -start
 
 syslog Slg_1 -level notice {
@@ -55,7 +55,7 @@ backend be_app
 
 client c1 -connect ${h1_fe_1_sock} {
     txreq -url "/"
-    delay 0.02
+    rxresp
 } -run
 
 syslog Slg_1 -wait