From cc8a2e4257da2a2d2a3e3ef97d4f6e2ecfdace12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 5 Apr 2020 16:28:54 +0200 Subject: Reduce the pipeline test body sizes to avoid filling send buffers This causes the test to get stuck because both the client and server end up waiting in Transport:send for the other side to read data from the socket. --- test/rfc7230_SUITE.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rfc7230_SUITE.erl b/test/rfc7230_SUITE.erl index 0097b7d..19b97bc 100644 --- a/test/rfc7230_SUITE.erl +++ b/test/rfc7230_SUITE.erl @@ -1557,13 +1557,13 @@ pipeline(Config) -> ConnPid = gun_open(Config), Refs = [{ gun:get(ConnPid, "/"), - gun:post(ConnPid, "/full/read_body", [], <<0:800000>>) + gun:post(ConnPid, "/full/read_body", [], <<0:80000>>) } || _ <- lists:seq(1, 25)], _ = [begin {response, nofin, 200, _} = gun:await(ConnPid, Ref1, infinity), {ok, <<"Hello world!">>} = gun:await_body(ConnPid, Ref1, infinity), {response, nofin, 200, _} = gun:await(ConnPid, Ref2, infinity), - {ok, <<0:800000>>} = gun:await_body(ConnPid, Ref2, infinity) + {ok, <<0:80000>>} = gun:await_body(ConnPid, Ref2, infinity) end || {Ref1, Ref2} <- Refs], ok. -- cgit v1.2.3