mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
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.
This commit is contained in:
parent
4ab69f402e
commit
cc8a2e4257
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue