REGTEST: http-messaging: add "option http-buffer-request" for H2 tests

These tests upload contents and randomly make the server start to
respond before the client finishes to upload data, making the test
occasionally fail. Waiting for a body in the server doesn't always
work, depending on the method or how the data are advertised. Thus,
let's ask haproxy to wait for the request using the aforementioned
option, it guarantees that the DATA frame is sent before the response
HEADERS frame is delivered.
This commit is contained in:
Willy Tarreau 2018-12-14 09:51:48 +01:00
parent f3ec86ad89
commit 4a7b5b3fdb
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ haproxy h1 -conf {
defaults
#log stdout format raw daemon
mode http
option http-buffer-request
#option http-use-htx
timeout connect 1s
timeout client 1s

View File

@ -40,6 +40,7 @@ haproxy h1 -conf {
defaults
#log stdout format raw daemon
mode http
option http-buffer-request
option http-use-htx
timeout connect 1s
timeout client 1s