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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
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 b8a702463f9810826808fee556989bc4f3f08e5c..5705c0b03b5c7eb3a7e7b3e312897b5697f98646 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -41,6 +41,9 @@ static const int64 kMinTailLossProbeTimeoutMs = 10;
// Number of samples before we force a new recent min rtt to be captured.
static const size_t kNumMinRttSamplesAfterQuiescence = 2;
+// Number of unpaced packets to send after quiescence.
+static const size_t kInitialUnpacedBurst = 10;
+
bool HasCryptoHandshake(const TransmissionInfo& transmission_info) {
if (transmission_info.retransmittable_frames == NULL) {
return false;
@@ -787,6 +790,10 @@ QuicBandwidth QuicSentPacketManager::BandwidthEstimate() const {
return send_algorithm_->BandwidthEstimate();
}
+bool QuicSentPacketManager::HasReliableBandwidthEstimate() const {
+ return send_algorithm_->HasReliableBandwidthEstimate();
+}
+
QuicByteCount QuicSentPacketManager::GetCongestionWindow() const {
return send_algorithm_->GetCongestionWindow();
}
@@ -804,7 +811,8 @@ void QuicSentPacketManager::MaybeEnablePacing() {
using_pacing_ = true;
send_algorithm_.reset(
new PacingSender(send_algorithm_.release(),
- QuicTime::Delta::FromMilliseconds(5)));
+ QuicTime::Delta::FromMilliseconds(5),
+ kInitialUnpacedBurst));
}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698