Browse Source

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.
Loïc Hoguin 5 years ago
parent
commit
cc8a2e4257
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/rfc7230_SUITE.erl

+ 2 - 2
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.