From 3ebe5a5147db20036d0762b92898f313b4d2f8d8 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 3 Sep 2015 21:22:55 +0200 Subject: [PATCH] http2: do net let Settings frames escape --- netlib/http/http2/protocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netlib/http/http2/protocol.py b/netlib/http/http2/protocol.py index 2fbe7705c..4328ebddb 100644 --- a/netlib/http/http2/protocol.py +++ b/netlib/http/http2/protocol.py @@ -285,6 +285,8 @@ class HTTP2Protocol(semantics.ProtocolMixin): return True def _handle_unexpected_frame(self, frm): + if isinstance(frm, frame.SettingsFrame): + return if self.unhandled_frame_cb: self.unhandled_frame_cb(frm)