on master help sign in
fixing a test failure of h2spec.

ignoring PING w/ ACK.

commit67cf9d34df638c4995f3e78a9dc8322b4f8853d8 authorKazu Yamamoto <kazu@iij.ad.jp> dateMon 30 Jan 2017, 15:36 (10 years ago) parent1107260
1 file changed+1−1
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+1−1
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+1−1
@@ -210,7 +210,7 @@ control FrameSettings header@FrameHeader{flags} bs Context{http2settings, contro
210210
211211control FramePing FrameHeader{flags} bs Context{controlQ} =
212212 if testAck flags then
213− E.throwIO $ ConnectionError ProtocolError "the ack flag of this ping frame must not be set"
213+ return True -- just ignore
214214 else do
215215 let !frame = pingFrame bs
216216 enqueueControl controlQ $ CFrame frame