REGTESTS: abortonclose: after retries, 503 is expected, not close
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Aug 2021 09:12:47 +0000 (11:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Sep 2021 14:23:00 +0000 (16:23 +0200)
The abortonclose test was only expecting a close after all server
retries were exhausted, it didn't check for the pending 503, which
fails with new versions of vtest starting with commit 8d6c6bd
("Leak-plugging on barriers").

This may be backported, but carefully in case older versions would
really close without responding.

(cherry picked from commit 1713eec36d347e7e7d6208980f0abd2db8d1cd81)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 2b0ba5fe349f80013fb028f523c3ad945a8c5ffa)
Signed-off-by: Willy Tarreau <w@1wt.eu>

reg-tests/http-messaging/http_abortonclose.vtc

index c074982..4c8ce79 100644 (file)
@@ -78,7 +78,8 @@ haproxy h1 -conf {
 # No server, wait all connection retries : SC--
 client  c1 -connect ${h1_fe1_sock} {
     txreq -url /c1
-    expect_close
+    rxresp
+    expect resp.status == 503
 } -run
 
 # Wait c1 log entry