Commit 58d636ab authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

Revert 918f8cca

For first scheduling, we might ignore weight.  This is OK since weight
is just a distribution of resource, rather than strict priority
ordering.
parent be0d0e29
...@@ -114,8 +114,7 @@ static int stream_subtree_active(nghttp2_stream *stream) { ...@@ -114,8 +114,7 @@ static int stream_subtree_active(nghttp2_stream *stream) {
*/ */
static uint64_t stream_next_cycle(nghttp2_stream *stream, uint64_t last_cycle) { static uint64_t stream_next_cycle(nghttp2_stream *stream, uint64_t last_cycle) {
return last_cycle + return last_cycle +
(stream->last_writelen + 1) * NGHTTP2_MAX_WEIGHT / stream->last_writelen * NGHTTP2_MAX_WEIGHT / (uint32_t)stream->weight;
(uint32_t)stream->weight;
} }
static int stream_obq_push(nghttp2_stream *dep_stream, nghttp2_stream *stream) { 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