aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-02-26 13:24:15 +0100
committerLoïc Hoguin <[email protected]>2017-02-26 13:24:15 +0100
commitbb83a6ce33288c04250497318565ac499282c720 (patch)
tree8956731dc4c6d370f2156e3e10b0f93517ea72df /src
parenta3636adcac15f0eea4151dca8a28a915eadaa1ed (diff)
downloadcowboy-bb83a6ce33288c04250497318565ac499282c720.tar.gz
cowboy-bb83a6ce33288c04250497318565ac499282c720.tar.bz2
cowboy-bb83a6ce33288c04250497318565ac499282c720.zip
Unknown HTTP/2 frames are ignored
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http2.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index bbf400e..7cb564c 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -231,6 +231,8 @@ parse(State=#state{local_settings=#{max_frame_size := MaxFrameSize},
{continuation, _, _, _} ->
parse(continuation_frame(State, Frame), Rest)
end;
+ {ignore, Rest} ->
+ parse(State, Rest);
{stream_error, StreamID, Reason, Human, Rest} ->
parse(stream_reset(State, StreamID, {stream_error, Reason, Human}), Rest);
Error = {connection_error, _, _} ->