]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REGTEST: make the IP+port logging test more reliable
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 18:19:48 +0000 (19:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 18:19:48 +0000 (19:19 +0100)
commitf95838ca2da07766d14f11359b1a30c1ad6c7361
tree16c50afc2bddc8be40f697b42055cb6a99d283a2
parente7a770ce80767f32356a02c1a013e14e0b130a6d
REGTEST: make the IP+port logging test more reliable

On my machine, test log/b00000.vtc fails ~9/10 times. Apparently, the
connection is often marked as reset before the timeout strikes, so the
log shows "CD" flags instead of "cD". This fix does two things :
  1) shorten the client timeout to 1 millisecond instead of 5
  2) accept both "cD" and "CD" as valid termination states since the
     purpose is to validate the source address and port, and not the
     status itself.
reg-tests/log/b00000.vtc