on master help sign in
fixing test failures of h2spec.

Priority before Headers.

commit12cc6b23af2f674874905bd077c6e47f0fcd2c00 authorKazu Yamamoto <kazu@iij.ad.jp> dateWed 1 Feb 2017, 10:32 (10 years ago) parentbc060b6
1 file changed+2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+2
warp/Network/Wai/Handler/Warp/HTTP2/Receiver.hs+2
@@ -159,6 +159,8 @@ frameReceiver ctx mkreq recvN = loop 0 `E.catch` sendGoaway
159159 when (ftyp == FrameHeaders) $ do
160160 st <- readIORef $ streamState strm0
161161 when (isHalfClosed st) $ E.throwIO $ ConnectionError StreamClosed "header must not be sent to half closed"
162+ -- Priority made an idele stream
163+ when (isIdle st) $ opened ctx strm0
162164 return js
163165 Nothing
164166 | isResponse streamId -> return Nothing