diff options
author | Loïc Hoguin <[email protected]> | 2015-04-13 12:31:34 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-04-13 12:31:34 +0300 |
commit | ca39e743ff2db1327ce450a2f284dc8ee5eb0afa (patch) | |
tree | ea66157d65e11bd87fb34ce707b9951b5ea5612a | |
parent | 9b65246e55af95ace39befb90a8e5a0238830185 (diff) | |
download | gun-ca39e743ff2db1327ce450a2f284dc8ee5eb0afa.tar.gz gun-ca39e743ff2db1327ce450a2f284dc8ee5eb0afa.tar.bz2 gun-ca39e743ff2db1327ce450a2f284dc8ee5eb0afa.zip |
One more SPDY test
-rw-r--r-- | test/spdy_SUITE.erl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/spdy_SUITE.erl b/test/spdy_SUITE.erl index b5a5666..b19146f 100644 --- a/test/spdy_SUITE.erl +++ b/test/spdy_SUITE.erl @@ -301,3 +301,15 @@ dont_send_rst_stream_on_rst_stream(_) -> %% No RST_STREAM was received; only SYN_STREAM. [_] = spdy_server:stop(ServerPid), not_down(). + +coalesce_multiple_identical_rst_stream(_) -> + doc("Do not send multiple identical RST_STREAM in succession. (spdy-protocol-draft3-1 2.4.2)"), + {ok, ServerPid, Port} = spdy_server:start_link(), + {ok, ConnPid} = gun:open("localhost", Port, #{transport=>ssl}), + {ok, spdy} = gun:await_up(ConnPid), + spdy_server:send(ServerPid, [ + {data, 1, true, <<"Hello ">>}, + {data, 1, true, <<"world!">>} + ]), + wait(), + [{rst_stream, 1, invalid_stream}] = spdy_server:stop(ServerPid). |