| 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/core/quic_connection.h" | 5 #include "net/quic/core/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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 ack_decimation_delay_ = kShortAckDecimationDelay; | 339 ack_decimation_delay_ = kShortAckDecimationDelay; |
| 340 } | 340 } |
| 341 if (config.HasClientSentConnectionOption(kAKD4, perspective_)) { | 341 if (config.HasClientSentConnectionOption(kAKD4, perspective_)) { |
| 342 ack_mode_ = ACK_DECIMATION_WITH_REORDERING; | 342 ack_mode_ = ACK_DECIMATION_WITH_REORDERING; |
| 343 ack_decimation_delay_ = kShortAckDecimationDelay; | 343 ack_decimation_delay_ = kShortAckDecimationDelay; |
| 344 } | 344 } |
| 345 if (config.HasClientSentConnectionOption(k5RTO, perspective_)) { | 345 if (config.HasClientSentConnectionOption(k5RTO, perspective_)) { |
| 346 close_connection_after_five_rtos_ = true; | 346 close_connection_after_five_rtos_ = true; |
| 347 } | 347 } |
| 348 if (packet_generator_.latched_flag_no_stop_waiting_frames() && | 348 if (packet_generator_.latched_flag_no_stop_waiting_frames() && |
| 349 version() > QUIC_VERSION_37 && |
| 349 config.HasClientSentConnectionOption(kNSTP, perspective_)) { | 350 config.HasClientSentConnectionOption(kNSTP, perspective_)) { |
| 350 QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_no_stop_waiting_frames, 2, 2); | 351 QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_no_stop_waiting_frames, 2, 2); |
| 351 no_stop_waiting_frames_ = true; | 352 no_stop_waiting_frames_ = true; |
| 352 } | 353 } |
| 353 } | 354 } |
| 354 | 355 |
| 355 void QuicConnection::OnSendConnectionState( | 356 void QuicConnection::OnSendConnectionState( |
| 356 const CachedNetworkParameters& cached_network_params) { | 357 const CachedNetworkParameters& cached_network_params) { |
| 357 if (debug_visitor_ != nullptr) { | 358 if (debug_visitor_ != nullptr) { |
| 358 debug_visitor_->OnSendConnectionState(cached_network_params); | 359 debug_visitor_->OnSendConnectionState(cached_network_params); |
| (...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2386 | 2387 |
| 2387 void QuicConnection::CheckIfApplicationLimited() { | 2388 void QuicConnection::CheckIfApplicationLimited() { |
| 2388 if (queued_packets_.empty() && | 2389 if (queued_packets_.empty() && |
| 2389 !sent_packet_manager_.HasPendingRetransmissions() && | 2390 !sent_packet_manager_.HasPendingRetransmissions() && |
| 2390 !visitor_->WillingAndAbleToWrite()) { | 2391 !visitor_->WillingAndAbleToWrite()) { |
| 2391 sent_packet_manager_.OnApplicationLimited(); | 2392 sent_packet_manager_.OnApplicationLimited(); |
| 2392 } | 2393 } |
| 2393 } | 2394 } |
| 2394 | 2395 |
| 2395 } // namespace net | 2396 } // namespace net |
| OLD | NEW |