From 52d37ee91141e7be808a398deb0cf2ba1871ec9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 28 Sep 2018 16:59:08 +0200 Subject: Ignore HTTP/2 frames of unknown types --- src/gun_http2.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gun_http2.erl b/src/gun_http2.erl index 6176fe3..1905888 100644 --- a/src/gun_http2.erl +++ b/src/gun_http2.erl @@ -119,6 +119,8 @@ parse(Data0, State0=#http2_state{buffer=Buffer}) -> close -> close; State1 -> parse(Rest, State1) end; + {ignore, Rest} -> + parse(Rest, State0); {stream_error, StreamID, Reason, Human, Rest} -> parse(Rest, stream_reset(State0, StreamID, {stream_error, Reason, Human})); Error = {connection_error, _, _} -> -- cgit v1.2.3