@@ -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