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

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

Issue 1232793004: relnote: Deprecate FLAGS_quic_dont_ack_acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Convert_map_into_list_97162517
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_connection.h" 5 #include "net/quic/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 return; 1010 return;
1011 } 1011 }
1012 } 1012 }
1013 if (!last_close_frames_.empty()) { 1013 if (!last_close_frames_.empty()) {
1014 CloseConnection(last_close_frames_[0].error_code, true); 1014 CloseConnection(last_close_frames_[0].error_code, true);
1015 DCHECK(!connected_); 1015 DCHECK(!connected_);
1016 return; 1016 return;
1017 } 1017 }
1018 1018
1019 // If there are new missing packets to report, send an ack immediately. 1019 // If there are new missing packets to report, send an ack immediately.
1020 if ((!FLAGS_quic_dont_ack_acks || ShouldLastPacketInstigateAck()) && 1020 if (ShouldLastPacketInstigateAck() &&
1021 received_packet_manager_.HasNewMissingPackets()) { 1021 received_packet_manager_.HasNewMissingPackets()) {
1022 ack_queued_ = true; 1022 ack_queued_ = true;
1023 ack_alarm_->Cancel(); 1023 ack_alarm_->Cancel();
1024 } 1024 }
1025 1025
1026 UpdateStopWaitingCount(); 1026 UpdateStopWaitingCount();
1027 ClearLastFrames(); 1027 ClearLastFrames();
1028 MaybeCloseIfTooManyOutstandingPackets(); 1028 MaybeCloseIfTooManyOutstandingPackets();
1029 } 1029 }
1030 1030
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 sequence_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; 2320 sequence_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1;
2321 ++mtu_probe_count_; 2321 ++mtu_probe_count_;
2322 2322
2323 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; 2323 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_;
2324 SendMtuDiscoveryPacket(mtu_discovery_target_); 2324 SendMtuDiscoveryPacket(mtu_discovery_target_);
2325 2325
2326 DCHECK(!mtu_discovery_alarm_->IsSet()); 2326 DCHECK(!mtu_discovery_alarm_->IsSet());
2327 } 2327 }
2328 2328
2329 } // namespace net 2329 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698