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

Unified Diff: net/quic/congestion_control/pacing_sender.h

Issue 367853003: Change QUIC's pacer to allow a 10 packet burst when the connection comes (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
« no previous file with comments | « no previous file | net/quic/congestion_control/pacing_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/pacing_sender.h
diff --git a/net/quic/congestion_control/pacing_sender.h b/net/quic/congestion_control/pacing_sender.h
index ef0e10322ac7f84f1196c7b8653ae4010157795b..9230635b85d7284f983fe574ff01b8677936bbcd 100644
--- a/net/quic/congestion_control/pacing_sender.h
+++ b/net/quic/congestion_control/pacing_sender.h
@@ -25,8 +25,13 @@ namespace net {
class NET_EXPORT_PRIVATE PacingSender : public SendAlgorithmInterface {
public:
+ // Create a PacingSender to wrap the specified sender. |alarm_granularity|
+ // indicates to the pacer to send that far into the future, since it should
+ // not expect a callback before that time delta. |initial_packet_burst| is
+ // the number of packets sent without pacing after quiescence.
PacingSender(SendAlgorithmInterface* sender,
- QuicTime::Delta alarm_granularity);
+ QuicTime::Delta alarm_granularity,
+ uint32 initial_packet_burst);
virtual ~PacingSender();
// SendAlgorithmInterface methods.
@@ -57,6 +62,8 @@ class NET_EXPORT_PRIVATE PacingSender : public SendAlgorithmInterface {
private:
scoped_ptr<SendAlgorithmInterface> sender_; // Underlying sender.
QuicTime::Delta alarm_granularity_;
+ uint32 initial_packet_burst_;
+ uint32 burst_tokens_;
// Send time of the last packet considered delayed.
QuicTime last_delayed_packet_sent_time_;
QuicTime next_packet_send_time_; // When can the next packet be sent.
« no previous file with comments | « no previous file | net/quic/congestion_control/pacing_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698