]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REGTEST: http-messaging: add "option http-buffer-request" for H2 tests
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 08:51:48 +0000 (09:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2018 08:51:48 +0000 (09:51 +0100)
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.

reg-tests/http-messaging/h00002.vtc
reg-tests/http-messaging/h00003.vtc

index 0b2daee300db3ca782728018be7dc779c8867b4d..6fc536aed5f35291c434019727b434e254cf0a23 100644 (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
index acb56b0091e4ca774e834453e10ddfcf43bdc2a2..ec117563b805ed8845886569dac065be8f2abbba 100644 (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