Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: net/quic/quic_write_blocked_list.cc

Issue 1472563002: Let QUIC streams write 16k before ceding. Behind FLAG_quic_batch_writes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107581674
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_write_blocked_list.h ('k') | net/quic/quic_write_blocked_list_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_write_blocked_list.cc
diff --git a/net/quic/quic_write_blocked_list.cc b/net/quic/quic_write_blocked_list.cc
index e763d172f26a2704c4d8db033d1f28dfb7254eb2..0a7477249e7ee38f5aa9d7fc991f963b95cc6abd 100644
--- a/net/quic/quic_write_blocked_list.cc
+++ b/net/quic/quic_write_blocked_list.cc
@@ -6,13 +6,14 @@
namespace net {
-const QuicPriority QuicWriteBlockedList::kHighestPriority =
- static_cast<QuicPriority>(net::kHighestPriority);
-const QuicPriority QuicWriteBlockedList::kLowestPriority =
- static_cast<QuicPriority>(net::kLowestPriority);
-
QuicWriteBlockedList::QuicWriteBlockedList()
- : crypto_stream_blocked_(false), headers_stream_blocked_(false) {
+ : last_priority_popped_(0),
+ crypto_stream_blocked_(false),
+ headers_stream_blocked_(false) {
+ memset(batch_write_stream_id_, 0,
+ arraysize(batch_write_stream_id_) * sizeof(QuicStreamId));
+ memset(bytes_left_for_batch_write_, 0,
+ arraysize(bytes_left_for_batch_write_) * sizeof(int32));
}
QuicWriteBlockedList::~QuicWriteBlockedList() {}
« no previous file with comments | « net/quic/quic_write_blocked_list.h ('k') | net/quic/quic_write_blocked_list_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698