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

Side by Side Diff: net/quic/quic_sent_packet_manager.cc

Issue 302283004: Changes the pacing sender's alarm granularity from 1 microsecond to 5 (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 728
729 void QuicSentPacketManager::MaybeEnablePacing() { 729 void QuicSentPacketManager::MaybeEnablePacing() {
730 if (!FLAGS_enable_quic_pacing) { 730 if (!FLAGS_enable_quic_pacing) {
731 return; 731 return;
732 } 732 }
733 733
734 if (using_pacing_) { 734 if (using_pacing_) {
735 return; 735 return;
736 } 736 }
737 737
738 // Set up a pacing sender with a 5 millisecond alarm granularity.
738 using_pacing_ = true; 739 using_pacing_ = true;
739 send_algorithm_.reset( 740 send_algorithm_.reset(
740 new PacingSender(send_algorithm_.release(), 741 new PacingSender(send_algorithm_.release(),
741 QuicTime::Delta::FromMicroseconds(1))); 742 QuicTime::Delta::FromMilliseconds(5)));
742 } 743 }
743 744
744 } // namespace net 745 } // namespace net
OLDNEW
« 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