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

Unified Diff: net/quic/quic_flow_controller.cc

Issue 1327903004: relnote: QUIC bugfix (and test) for setting smaller receive window size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_num_connections_101619602
Patch Set: Created 5 years, 3 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_flow_controller.h ('k') | net/quic/quic_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_flow_controller.cc
diff --git a/net/quic/quic_flow_controller.cc b/net/quic/quic_flow_controller.cc
index 699f836d20ddcca8806d30e2e6ba24991749d948..72f4c7fa2f1f09255453dbe513884933acb91904 100644
--- a/net/quic/quic_flow_controller.cc
+++ b/net/quic/quic_flow_controller.cc
@@ -241,4 +241,16 @@ uint64 QuicFlowController::SendWindowSize() const {
return send_window_offset_ - bytes_sent_;
}
+void QuicFlowController::UpdateReceiveWindowSize(QuicStreamOffset size) {
+ DVLOG(1) << ENDPOINT << "UpdateReceiveWindowSize for stream " << id_ << ": "
+ << size;
+ if (receive_window_size_ != receive_window_offset_) {
+ LOG(DFATAL) << "receive_window_size_:" << receive_window_size_
+ << " != receive_window_offset:" << receive_window_offset_;
+ return;
+ }
+ receive_window_size_ = size;
+ receive_window_offset_ = size;
+}
+
} // namespace net
« no previous file with comments | « net/quic/quic_flow_controller.h ('k') | net/quic/quic_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698