Commit 918f8cca authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Honor stream->weight even if stream->last_writelen is 0

parent 22b39f03
......@@ -113,7 +113,7 @@ static int stream_subtree_active(nghttp2_stream *stream) {
*/
static uint64_t stream_next_cycle(nghttp2_stream *stream, uint64_t last_cycle) {
return last_cycle +
stream->last_writelen * NGHTTP2_MAX_WEIGHT / stream->weight;
(stream->last_writelen + 1) * NGHTTP2_MAX_WEIGHT / stream->weight;
}
static int stream_obq_push(nghttp2_stream *dep_stream, nghttp2_stream *stream) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment