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

Unified Diff: net/quic/quic_session.cc

Issue 242593002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Use uint32 instead of int Created 6 years, 8 months 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_sent_packet_manager.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index da1c863fcc64ae46be0806eade8c8046efd5f043..73e32fbc3848addbef480c5d2f1537a807ebe64f 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -285,7 +285,7 @@ void QuicSession::OnCanWrite() {
has_pending_handshake_ = false; // We just popped it.
}
ReliableQuicStream* stream = GetStream(stream_id);
- if (stream != NULL && !stream->IsFlowControlBlocked()) {
+ if (stream != NULL && !stream->flow_controller()->IsBlocked()) {
// If the stream can't write all bytes, it'll re-add itself to the blocked
// list.
stream->OnCanWrite();
@@ -389,7 +389,8 @@ void QuicSession::OnConfigNegotiated() {
}
DataStreamMap::iterator it = stream_map_.begin();
while (it != stream_map_.end()) {
- it->second->UpdateFlowControlSendLimit(new_flow_control_send_window);
+ it->second->flow_controller()->UpdateSendWindowOffset(
+ new_flow_control_send_window);
it++;
}
}
@@ -558,10 +559,12 @@ void QuicSession::MarkWriteBlocked(QuicStreamId id, QuicPriority priority) {
#ifndef NDEBUG
ReliableQuicStream* stream = GetStream(id);
if (stream != NULL) {
- if (stream->IsFlowControlBlocked()) {
- LOG(DFATAL) << "Stream " << id << " is flow control blocked.";
+ if (stream->flow_controller()->IsBlocked()) {
+ LOG(DFATAL) << ENDPOINT << "Stream " << id
+ << " is flow control blocked and write blocked!";
}
LOG_IF(DFATAL, priority != stream->EffectivePriority())
+ << ENDPOINT << "Stream " << id
<< "Priorities do not match. Got: " << priority
<< " Expected: " << stream->EffectivePriority();
} else {
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698