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

Unified Diff: net/quic/quic_flow_controller.cc

Issue 1145433003: Rename local variable only - consumed_window to available_window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_support_for_stateless_rejects_to_QuicDispatcher_93414515
Patch Set: Created 5 years, 7 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 | « no previous file | no next file » | 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 d95541edbcc98ddda7ded242ec74637d27954b24..af79b95643409332f0ab364b6f3ed7ef9bca414f 100644
--- a/net/quic/quic_flow_controller.cc
+++ b/net/quic/quic_flow_controller.cc
@@ -92,16 +92,16 @@ void QuicFlowController::MaybeSendWindowUpdate() {
// (receive window offset - consumed bytes) < (max window / 2).
// This is behaviour copied from SPDY.
DCHECK_LT(bytes_consumed_, receive_window_offset_);
- QuicStreamOffset consumed_window = receive_window_offset_ - bytes_consumed_;
+ QuicStreamOffset available_window = receive_window_offset_ - bytes_consumed_;
QuicByteCount threshold = (max_receive_window_ / 2);
- if (consumed_window < threshold) {
+ if (available_window < threshold) {
// Update our receive window.
- receive_window_offset_ += (max_receive_window_ - consumed_window);
+ receive_window_offset_ += (max_receive_window_ - available_window);
DVLOG(1) << ENDPOINT << "Sending WindowUpdate frame for stream " << id_
<< ", consumed bytes: " << bytes_consumed_
- << ", consumed window: " << consumed_window
+ << ", available window: " << available_window
<< ", and threshold: " << threshold
<< ", and max recvw: " << max_receive_window_
<< ". New receive window offset is: " << receive_window_offset_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698