Chromium Code Reviews
DescriptionRename and modify SpdyPriorityTree.
Rename SpdyPriorityTree to Http2PriorityWriteScheduler and move into
http2_write_scheduler.h, to better align with PriorityWriteScheduler, which
handles the equivalent role for SPDY/3. Also change code and comments to refer
to streams instead of nodes.
Modify Http2PriorityWriteScheduler API to be more consistent with
PriorityWriteScheduler. Previously, in cases of API misuse,
Http2PriorityWriteScheduler methods would return false to indicate error, in
turn sometimes requiring other values to be returned via out-params. This CL
makes Http2PriorityWriteScheduler use a style similar to PriorityWriteScheduler,
where invalid method calls trigger DFATAL, and status is no longer reflected by
return value.
Modify Http2PriorityWriteScheduler so that it picks streams one at a time, as
opposed to calculating a full ordering across all streams in a batch. Picking
streams one at a time is necessary to match usage of existing
WriteBlockedList/PriorityWriteScheduler by SPDY and QUIC code. This change also
adds proper round-robining of picks across usable streams with the same
priority.
This CL lands server changes 112594726, 112597015, and 112782384 by mpw.
BUG=488484
Committed: https://crrev.com/09c6fbd4281c0c4a5f22093f8791dddc01a50561
Cr-Commit-Position: refs/heads/master@{#373743}
Patch Set 1 #Patch Set 2 : Fix EXPECT_DFATAL test errors on release builds. #Patch Set 3 : Rebase. #Patch Set 4 : unique_ptr is not allowed yet. #Patch Set 5 : Remove premature? optimization. #Patch Set 6 : Revert to LinkedList for performance. #Patch Set 7 : Rebase on https://crrev.com/1668773003. #
Messages
Total messages: 12 (4 generated)
|
||||||||||||||||||||||||||||