summaryrefslogtreecommitdiffstats
path: root/net/quic/quic_sent_packet_manager.cc
diff options
context:
space:
mode:
authorrtenneti <rtenneti@chromium.org>2015-03-27 11:59:23 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-27 19:00:04 +0000
commit95293808942643749bb054446e915f22937a2e97 (patch)
tree7d46c662ba31164c8c0b7630353599d83128619f /net/quic/quic_sent_packet_manager.cc
parent335d3a8a0e9c22cd0e078865b0b87d2bb348a45e (diff)
downloadchromium_src-95293808942643749bb054446e915f22937a2e97.zip
chromium_src-95293808942643749bb054446e915f22937a2e97.tar.gz
chromium_src-95293808942643749bb054446e915f22937a2e97.tar.bz2
Land Recent QUIC Changes until 03/25/2015.
A number of fixes to please clang_tidy. There should be no functional changes. Putting the construction of a "null" SerializedPacket into a function rather than constructing one into a local variable everywhere one is needed. Renaming class members to end with "_". Taking the initial "k" off local variables. Merge internal change: 89397417 https://codereview.chromium.org/1039473003/ Move test for incoming packets with incorrect connection ID from QuicConnection::OnPacketHeader to ::OnUnauthenticatedPublicHeader so it works. Add tests to verify code handles incoming packets with invalid connection IDs. Add DCHECKs to verify that QuicConnection::OnPublicResetPacket and ::OnVersionNegotiationPacket don't get packets with invalid connection IDs. Add comment to QuicConnection::ProcessUdpPacket to note packet may have incorrect connection ID. Fix b/19710533. Merge internal change: 89336249 https://codereview.chromium.org/1038293002/ Fix a flaky QUIC end to end test by supplying the correct buffer size as the initial default. Merge internal change: 89220759 https://codereview.chromium.org/1038223002/ Initialize slowstart_packets_sent. Avoid uninitialized memory. Merge internal change: 89126237 https://codereview.chromium.org/1036123002/ QUIC - minor cleanup while merging the following change. In Chromium's AddToCache function, we use "www.google.com" instead of empty path as it was done in the internal CL. All other changes were already merged by rch. Make some changes to the QuicInMemory server to clarify the interface. Specifically that the cache is indexed by host and path, not by method nor scheme, nor full URL, nor request headers, etc. In preparation for making the chrome version more similar. Merge internal change: 89092881 https://codereview.chromium.org/1038203002/ R=rch@chromium.org Review URL: https://codereview.chromium.org/1041853002 Cr-Commit-Position: refs/heads/master@{#322616}
Diffstat (limited to 'net/quic/quic_sent_packet_manager.cc')
-rw-r--r--net/quic/quic_sent_packet_manager.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 829b9cb..a11b2fd 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -51,10 +51,6 @@ static const size_t kNumMinRttSamplesAfterQuiescence = 2;
// Number of unpaced packets to send after quiescence.
static const size_t kInitialUnpacedBurst = 10;
-// Fraction of the receive buffer that can be used for encrypted bytes.
-// Allows a 5% overhead for IP and UDP framing, as well as ack only packets.
-static const float kUsableRecieveBufferFraction = 0.95f;
-
bool HasCryptoHandshake(const TransmissionInfo& transmission_info) {
if (transmission_info.retransmittable_frames == nullptr) {
return false;