REGTESTS: fix the race conditions in normalize_uri.vtc
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Feb 2022 16:04:37 +0000 (17:04 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Mar 2022 10:31:08 +0000 (11:31 +0100)
commitc2293c603ab48dbe3afaccc97fb39751bdfee906
tree84a49c77bedc740a1f6f2eeb7b7c6c826d2f4dc8
parent14a874996379de6d9b72a24bc5f96382e9417dd3
REGTESTS: fix the race conditions in normalize_uri.vtc

There is no connection reuse to avoid race conditions in HTTP reg-tests. But
time to time, normalize_uri.vtc still report "HTTP header incomplete"
error. It seems to be because HTTP keep-alive is still used at the session
level. Thus when the same server section is used to handle multiple requests
for the same client, via a "-repeat" statement, a new request for this client
may be handled by HAProxy before the server is restarted.

To avoid any trouble, HTTP keep-alive is disabled on the server side by
adding "Connection: close" header in responses. It seems to be ok now. We
let the CI decide.

(cherry picked from commit e07f8b555267b49fe6c6afbf067430f97d5ecbf7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
reg-tests/http-rules/normalize_uri.vtc