We can assert this
This commit is contained in:
parent
d4a22edeb3
commit
e6ad2eb14f
|
@ -2246,7 +2246,9 @@ static void session_outbound_item_schedule(nghttp2_session *session,
|
||||||
int32_t weight) {
|
int32_t weight) {
|
||||||
size_t delta = item->frame.hd.length * NGHTTP2_MAX_WEIGHT / weight;
|
size_t delta = item->frame.hd.length * NGHTTP2_MAX_WEIGHT / weight;
|
||||||
|
|
||||||
session->last_cycle = nghttp2_max(session->last_cycle, item->cycle);
|
assert(session->last_cycle <= item->cycle);
|
||||||
|
|
||||||
|
session->last_cycle = item->cycle;
|
||||||
item->cycle = session->last_cycle + delta;
|
item->cycle = session->last_cycle + delta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue