on master help sign in
checking priority even if it is ignored.
commitcc3503d1d727259a8c5253b66d0840673a259729 authorKazu Yamamoto <kazu@iij.ad.jp> dateThu 30 Jun 2016, 14:20 (10 years ago) parentc82d976
1 file changed+6−1
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+6−1
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+6−1
@@ -105,7 +105,12 @@ frameReceiver ctx mkreq recvN = loop 0 `E.catch` sendGoaway
105105 !mstrm <- getStream
106106 pl <- recvN payloadLength
107107 case mstrm of
108− Nothing -> return True -- just ignore this frame
108+ Nothing -> do
109+ -- for h2spec only
110+ when (ftyp == FramePriority) $ do
111+ PriorityFrame newpri <- guardIt $ decodePriorityFrame header pl
112+ checkPriority newpri streamId
113+ return True -- just ignore this frame
109114 Just strm@Stream{streamState,streamPrecedence} -> do
110115 state <- readIORef streamState
111116 state' <- stream ftyp header pl ctx state strm