Revert 918f8cca36
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:
parent
be0d0e2995
commit
58d636abdb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue