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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 1138443003: Land Recent QUIC Changes until 05/13/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile error fixes 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 | « net/quic/quic_flow_controller.cc ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 2beef66b046226f42a899855f28d191bd0c17b18..c81c93df8e389f67235aaf8438ab0d04d41340d8 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -166,10 +166,8 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
receive_buffer_bytes_ =
max(kMinSocketReceiveBuffer,
static_cast<QuicByteCount>(config.ReceivedSocketReceiveBuffer()));
- if (FLAGS_quic_limit_max_cwnd_to_receive_buffer) {
- send_algorithm_->SetMaxCongestionWindow(receive_buffer_bytes_ *
- kUsableRecieveBufferFraction);
- }
+ send_algorithm_->SetMaxCongestionWindow(receive_buffer_bytes_ *
+ kUsableRecieveBufferFraction);
}
send_algorithm_->SetFromConfig(config, perspective_);
@@ -783,11 +781,6 @@ QuicTime::Delta QuicSentPacketManager::TimeUntilSend(
if (pending_timer_transmission_count_ > 0) {
return QuicTime::Delta::Zero();
}
- if (!FLAGS_quic_limit_max_cwnd_to_receive_buffer &&
- unacked_packets_.bytes_in_flight() >=
- kUsableRecieveBufferFraction * receive_buffer_bytes_) {
- return QuicTime::Delta::Infinite();
- }
return send_algorithm_->TimeUntilSend(
now, unacked_packets_.bytes_in_flight(), retransmittable);
}
« no previous file with comments | « net/quic/quic_flow_controller.cc ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698