on master help sign in
Ignore frames sent to streams we have reset, per section 5.1."closed".
commit35eb1ef2baeaa10584ec9131e3cfd832b797035e authorAndrew Pritchard <awpr@google.com> dateSun 26 Jul 2015, 16:58 (11 years ago) parentea389b1
1 file changed+2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+2
@@ -324,5 +324,7 @@ stream FramePriority header bs Context{outputQ} s Stream{streamNumber} = do
324324
325325-- this ordering is important
326326stream _ _ _ _ (Open Continued{}) _ = E.throwIO $ ConnectionError ProtocolError "an illegal frame follows header/continuation frames"
327+-- Ignore frames to streams we have just reset, per section 5.1.
328+stream _ _ _ _ st@(Closed (ResetByMe _)) _ = return st
327329stream FrameData FrameHeader{streamId} _ _ _ _ = E.throwIO $ StreamError StreamClosed streamId
328330stream _ FrameHeader{streamId} _ _ _ _ = E.throwIO $ StreamError ProtocolError streamId