0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add a zero-length DATA frame in the lingering_data test

This commit is contained in:
Tony Han 2019-07-26 10:07:00 +08:00 committed by Loïc Hoguin
parent 5829f1b9ac
commit 22cc88bae4
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -3153,6 +3153,7 @@ lingering_data_counts_toward_connection_window(Config0) ->
% Make sure server send RST_STREAM. % Make sure server send RST_STREAM.
timer:sleep(100), timer:sleep(100),
ok = gen_tcp:send(Socket, [ ok = gen_tcp:send(Socket, [
cow_http2:data(1, nofin, <<0:0/unit:8>>),
cow_http2:data(1, fin, <<0:1000/unit:8>>) cow_http2:data(1, fin, <<0:1000/unit:8>>)
]), ]),
{ok, << SkipLen:24, 1:8, _:8, 1:32 >>} = gen_tcp:recv(Socket, 9, 1000), {ok, << SkipLen:24, 1:8, _:8, 1:32 >>} = gen_tcp:recv(Socket, 9, 1000),