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