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

Side by Side Diff: net/tools/quic/quic_dispatcher.cc

Issue 2158263003: Landing Recent QUIC changes until 7/18/2016 11:21:53 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Running flag flipping script and rebase to master Created 4 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 | « net/quic/quic_flags.cc ('k') | net/tools/quic/quic_time_wait_list_manager.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/tools/quic/quic_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 QUIC_BUG << base::debug::StackTrace().ToString(); 468 QUIC_BUG << base::debug::StackTrace().ToString();
469 return; 469 return;
470 } 470 }
471 471
472 DVLOG_IF(1, error != QUIC_NO_ERROR) 472 DVLOG_IF(1, error != QUIC_NO_ERROR)
473 << "Closing connection (" << connection_id 473 << "Closing connection (" << connection_id
474 << ") due to error: " << QuicUtils::ErrorToString(error) 474 << ") due to error: " << QuicUtils::ErrorToString(error)
475 << ", with details: " << error_details; 475 << ", with details: " << error_details;
476 476
477 if (closed_session_list_.empty()) { 477 if (closed_session_list_.empty()) {
478 delete_sessions_alarm_->Cancel(); 478 delete_sessions_alarm_->Update(helper()->GetClock()->ApproximateNow(),
479 delete_sessions_alarm_->Set(helper()->GetClock()->ApproximateNow()); 479 QuicTime::Delta::Zero());
480 } 480 }
481 closed_session_list_.push_back(it->second); 481 closed_session_list_.push_back(it->second);
482 const bool should_close_statelessly = 482 const bool should_close_statelessly =
483 (error == QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT); 483 (error == QUIC_CRYPTO_HANDSHAKE_STATELESS_REJECT);
484 CleanUpSession(it, should_close_statelessly); 484 CleanUpSession(it, should_close_statelessly);
485 } 485 }
486 486
487 void QuicDispatcher::OnWriteBlocked( 487 void QuicDispatcher::OnWriteBlocked(
488 QuicBlockedWriterInterface* blocked_writer) { 488 QuicBlockedWriterInterface* blocked_writer) {
489 if (!writer_->IsWriteBlocked()) { 489 if (!writer_->IsWriteBlocked()) {
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 if (disable_quic_pre_30_ != FLAGS_quic_disable_pre_30) { 744 if (disable_quic_pre_30_ != FLAGS_quic_disable_pre_30) {
745 DCHECK_EQ(supported_versions_.capacity(), 745 DCHECK_EQ(supported_versions_.capacity(),
746 allowed_supported_versions_.capacity()); 746 allowed_supported_versions_.capacity());
747 disable_quic_pre_30_ = FLAGS_quic_disable_pre_30; 747 disable_quic_pre_30_ = FLAGS_quic_disable_pre_30;
748 supported_versions_ = FilterSupportedVersions(allowed_supported_versions_); 748 supported_versions_ = FilterSupportedVersions(allowed_supported_versions_);
749 } 749 }
750 return supported_versions_; 750 return supported_versions_;
751 } 751 }
752 752
753 } // namespace net 753 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_flags.cc ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698