Commit e6ad2eb1 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

We can assert this

parent d4a22ede
......@@ -2246,7 +2246,9 @@ static void session_outbound_item_schedule(nghttp2_session *session,
int32_t 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;
}
......
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