mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Test trailers bug when there are data frames in queue
This commit is contained in:
parent
e81cd6328b
commit
43f1754f33
2 changed files with 3 additions and 2 deletions
|
@ -361,7 +361,8 @@ do(<<"stream_trailers">>, Req0, Opts) ->
|
|||
Req = cowboy_req:stream_reply(200, #{
|
||||
<<"trailer">> => <<"grpc-status">>
|
||||
}, Req0),
|
||||
cowboy_req:stream_body(<<0:800000>>, nofin, Req),
|
||||
%% The size should be larger than StreamSize and ConnSize
|
||||
cowboy_req:stream_body(<<0:80000000>>, nofin, Req),
|
||||
cowboy_req:stream_trailers(#{
|
||||
<<"grpc-status">> => <<"0">>
|
||||
}, Req),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue