From: Willy Tarreau Date: Fri, 14 Dec 2018 08:51:48 +0000 (+0100) Subject: REGTEST: http-messaging: add "option http-buffer-request" for H2 tests X-Git-Tag: v1.9-dev11~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a7b5b3fdb291eb54b5750f2328d06ef16935f5c;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/reg-tests/http-messaging/h00002.vtc b/reg-tests/http-messaging/h00002.vtc index 0b2daee300..6fc536aed5 100644 --- a/reg-tests/http-messaging/h00002.vtc +++ b/reg-tests/http-messaging/h00002.vtc @@ -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 diff --git a/reg-tests/http-messaging/h00003.vtc b/reg-tests/http-messaging/h00003.vtc index acb56b0091..ec117563b8 100644 --- a/reg-tests/http-messaging/h00003.vtc +++ b/reg-tests/http-messaging/h00003.vtc @@ -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