http_fail_cnt_body.vtc script was failing when small timeouts were used. The
script tries to detect client or server aborts during payload forwarding on
the other side. Because "http-no-delay" option was not set, a 200ms delay
could be observed to forward the server response. So with small timeouts,
the server timeout was hit before the client abort. It is now fixed.
In addition the delay before emitting CLI commands was removed.
This patch should be backported as far as 2.8.
timeout connect "${HAPROXY_TEST_TIMEOUT-5s}"
timeout client "${HAPROXY_TEST_TIMEOUT-5s}"
timeout server "${HAPROXY_TEST_TIMEOUT-5s}"
+ option http-no-delay
backend st
stick-table type string size 10 store http_fail_cnt
barrier b1 sync
} -run
-# let the second stream see the client close
-delay 0.5
-
haproxy h1 -cli {
send "show table st"
expect ~ "key=/srv .*http_fail_cnt=1\n"