aboutsummaryrefslogtreecommitdiffstats
path: root/test/spdy_server.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-04-13 12:23:59 +0300
committerLoïc Hoguin <[email protected]>2015-04-13 12:23:59 +0300
commit9b65246e55af95ace39befb90a8e5a0238830185 (patch)
tree31af1ca7deb7877413504319e4d987f9f5028cba /test/spdy_server.erl
parent476147d068a281d456b2748cae7cd7537ec4b37a (diff)
downloadgun-9b65246e55af95ace39befb90a8e5a0238830185.tar.gz
gun-9b65246e55af95ace39befb90a8e5a0238830185.tar.bz2
gun-9b65246e55af95ace39befb90a8e5a0238830185.zip
One more SPDY test
Diffstat (limited to 'test/spdy_server.erl')
-rw-r--r--test/spdy_server.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/spdy_server.erl b/test/spdy_server.erl
index 2847d33..4690270 100644
--- a/test/spdy_server.erl
+++ b/test/spdy_server.erl
@@ -113,6 +113,9 @@ do_send([{syn_stream, StreamID, AssocToStreamID, IsFin, IsUnidirectional, Priori
do_send([{syn_reply, StreamID, IsFin, Status, Version, Headers}|Tail], Socket, Zdef) ->
ssl:send(Socket, cow_spdy:syn_reply(Zdef, StreamID, IsFin, Status, Version, Headers)),
do_send(Tail, Socket, Zdef);
+do_send([{rst_stream, StreamID, Status}|Tail], Socket, Zdef) ->
+ ssl:send(Socket, cow_spdy:rst_stream(StreamID, Status)),
+ do_send(Tail, Socket, Zdef);
do_send([{window_update, StreamID, DeltaWindowSize}|Tail], Socket, Zdef) ->
%% @todo ssl:send(Socket, cow_spdy:window_update(StreamID, DeltaWindowSize)),
do_send(Tail, Socket, Zdef);