| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |