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

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

Issue 2809723002: Let QUIC_VERSION_38 support IETF PADDING frame (1 byte frame with type 0x00) and respect NSTP conne… (Closed)
Patch Set: Remove old FLAGS_quic_enable_version_38 Created 3 years, 8 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/core/quic_data_reader.h » ('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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/quic_data_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698