diff options
author | rtenneti <rtenneti@chromium.org> | 2014-10-29 18:49:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 01:49:49 +0000 |
commit | 2318668785bae416e25ee3ffff0dd72308f075a9 (patch) | |
tree | 37a3a65441b5f4e6b2470a1c1fcf5e5dadf3e1d9 /net/quic/quic_received_packet_manager.h | |
parent | 31e90adac9fd24f1b451bbe936406fbc0fe7345d (diff) | |
download | chromium_src-2318668785bae416e25ee3ffff0dd72308f075a9.zip chromium_src-2318668785bae416e25ee3ffff0dd72308f075a9.tar.gz chromium_src-2318668785bae416e25ee3ffff0dd72308f075a9.tar.bz2 |
Land Recent QUIC Changes.
Refactor Cubic congestion control to separate out PRR into a distinct
class.
Merge internal change: 78703144
https://codereview.chromium.org/688593002/
Move receive_window_ from BbrTcpSender and TcpCubicSender to
QuicSentPacketManager, since it's not specific to a congestion
algorithm.
Merge internal change: 78692549
https://codereview.chromium.org/687093002/
Gathering ClientConnectionStats at suitable times (near the end of
request handling and after receiving final ACK).
Exported kNumberOfNacksBeforeRetransmission for gathering
ClientConnectionStats.
Merge internal change: 78688302
https://codereview.chromium.org/687083002/
Deprecate rolled out flag FLAGS_close_quic_connection_unfinished_streams_2
Merge internal change: 78683497
https://codereview.chromium.org/639823010/
Close the QUIC connection if too many sent or received packets are
outstanding.
Protected by FLAGS_quic_too_many_outstanding_packets.
Merge internal change: 78666674
https://codereview.chromium.org/682413002/
Remove QUIC_VERSION_21 from supported versions.
Will remove it entirely later, after QUIC_VERSION_19 is removed.
Merge internal change: 78604601
https://codereview.chromium.org/682383003/
Turning off CID truncation for proxied connections.
Turning on CID truncation by default, since chrome will do it by
default.
Turning off CID truncation for proxied connections for QUIC.
Merge internal change: 78599095
https://codereview.chromium.org/683263003/
Protect UpdateRTT from negative send deltas
Prevent negative send_deltas from being incorporated into the various
RTT calculations. AFAIK, it's not happening now, but it doesn't hurt to
be vigilant against future bugs.
If we're getting such RTTs, it's due to some pathological error that
we'd like to know about.
Added a unittest for these corner cases.
Low-impact. Don't use negative samples in QUIC rtt calculation.
Merge internal change: 78580114
https://codereview.chromium.org/687883002/
Protect against the divide by zero error in QuicBandwidth::TransferTime.
Currently some send algorithms may return QuicBandwidth::Zero.
Merge internal change: 78578198
https://codereview.chromium.org/684043002/
Add a QUIC connection option, 'NTLP', to disable tail loss probes by
setting max_tail_loss_probes_ to 0, in order to evaluate it's
performance benefit.
Merge internal change: 78465187
https://codereview.chromium.org/682283003/
Adding an option for peers to negotiate the length of the QUIC
connection ID sent to them. This is a functional no-op until Chrome
starts sending this configuration option, at which point it can still be
turned off via FLAGS_allow_truncated_connection_ids_for_quic
Also fixing quic config to not have protected member variables while I'm
in there, because it was irritating me.
Allowing truncated QUIC connection IDs. Off by default.
Merge internal change: 78462599
https://codereview.chromium.org/687033002/
R=rch@chromium.org
Review URL: https://codereview.chromium.org/691483003
Cr-Commit-Position: refs/heads/master@{#302014}
Diffstat (limited to 'net/quic/quic_received_packet_manager.h')
-rw-r--r-- | net/quic/quic_received_packet_manager.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/quic/quic_received_packet_manager.h b/net/quic/quic_received_packet_manager.h index a15d570..7e1c88f 100644 --- a/net/quic/quic_received_packet_manager.h +++ b/net/quic/quic_received_packet_manager.h @@ -59,6 +59,8 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager : void SetCumulativeEntropyUpTo(QuicPacketSequenceNumber sequence_number, QuicPacketEntropyHash entropy_hash); + size_t size() const { return packets_entropy_.size(); } + private: friend class test::EntropyTrackerPeer; @@ -137,7 +139,10 @@ class NET_EXPORT_PRIVATE QuicReceivedPacketManager : // Returns true when there are new missing packets to be reported within 3 // packets of the largest observed. - bool HasNewMissingPackets(); + bool HasNewMissingPackets() const; + + // Returns the number of packets being tracked in the EntropyTracker. + size_t NumTrackedPackets() const; QuicPacketSequenceNumber peer_least_packet_awaiting_ack() { return peer_least_packet_awaiting_ack_; |