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