on master help sign in
Using defaultPriority for push and adding comments.
commita209610c55b1ed8a8063f8066d5ab18aafe42807 authorKazu Yamamoto <kazu@iij.ad.jp> dateSun 13 Sep 2015, 16:17 (11 years ago) parent51313aa
1 file changed+4−1
warp/Network/Wai/Handler/Warp/HTTP2/Worker.hs+4−1
warp/Network/Wai/Handler/Warp/HTTP2/Worker.hs+4−1
@@ -145,8 +145,11 @@ actuallyPushResponder ctx set strm promise responder = do
145145 ws <- initialWindowSize <$> readIORef http2settings
146146
147147 newStrm <- newStream pushConcurrency newSid ws
148+ -- Section 5.3.5 of RFC 7540 defines the weight of push promise is 16.
149+ -- But we need not to follow the spec. So, this value would change
150+ -- if necessary.
148151 writeIORef (streamPriority newStrm) $
149− Priority False (streamNumber strm) 16
152+ defaultPriority { streamDependency = streamNumber strm }
150153 opened newStrm
151154 insert streamTable newSid newStrm
152155