For first scheduling, we might ignore weight.  This is OK since weight
is just a distribution of resource, rather than strict priority
ordering.
This commit is contained in:
Tatsuhiro Tsujikawa 2015-11-02 23:38:29 +09:00
parent be0d0e2995
commit 58d636abdb
1 changed files with 1 additions and 2 deletions

View File

@ -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) {
return last_cycle +
(stream->last_writelen + 1) * NGHTTP2_MAX_WEIGHT /
(uint32_t)stream->weight;
stream->last_writelen * NGHTTP2_MAX_WEIGHT / (uint32_t)stream->weight;
}
static int stream_obq_push(nghttp2_stream *dep_stream, nghttp2_stream *stream) {