diff options
author | Loïc Hoguin <[email protected]> | 2020-04-05 16:28:54 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2020-04-05 16:28:54 +0200 |
commit | cc8a2e4257da2a2d2a3e3ef97d4f6e2ecfdace12 (patch) | |
tree | fce3b3873e58946bd96418f35c3320a08ee51948 | |
parent | 4ab69f402e38f77b7612ecf30f3defe9c6a76d24 (diff) | |
download | cowboy-cc8a2e4257da2a2d2a3e3ef97d4f6e2ecfdace12.tar.gz cowboy-cc8a2e4257da2a2d2a3e3ef97d4f6e2ecfdace12.tar.bz2 cowboy-cc8a2e4257da2a2d2a3e3ef97d4f6e2ecfdace12.zip |
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.
-rw-r--r-- | test/rfc7230_SUITE.erl | 4 |
1 files 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. |