From bb83a6ce33288c04250497318565ac499282c720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 26 Feb 2017 13:24:15 +0100 Subject: Unknown HTTP/2 frames are ignored --- src/cowboy_http2.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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, _, _} -> -- cgit v1.2.3