| 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 <errno.h> | 7 #include <errno.h> |
| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 // packets. | 282 // packets. |
| 283 QuicVersion version = header.versions.front(); | 283 QuicVersion version = header.versions.front(); |
| 284 time_wait_list_manager_->AddConnectionIdToTimeWait(connection_id, version, | 284 time_wait_list_manager_->AddConnectionIdToTimeWait(connection_id, version, |
| 285 nullptr); | 285 nullptr); |
| 286 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(connection_id)); | 286 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait(connection_id)); |
| 287 HandlePacketForTimeWait(header); | 287 HandlePacketForTimeWait(header); |
| 288 | 288 |
| 289 return nullptr; | 289 return nullptr; |
| 290 } | 290 } |
| 291 | 291 |
| 292 DVLOG(1) << "Created new session for " << connection_id; | 292 DVLOG(1) << "Created new session for connection ID " << connection_id; |
| 293 session_map_.insert(std::make_pair(connection_id, session)); | 293 session_map_.insert(std::make_pair(connection_id, session)); |
| 294 | 294 |
| 295 return session; | 295 return session; |
| 296 } | 296 } |
| 297 | 297 |
| 298 void QuicDispatcher::OnUnauthenticatedHeader(const QuicPacketHeader& header) { | 298 void QuicDispatcher::OnUnauthenticatedHeader(const QuicPacketHeader& header) { |
| 299 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait( | 299 DCHECK(time_wait_list_manager_->IsConnectionIdInTimeWait( |
| 300 header.public_header.connection_id)); | 300 header.public_header.connection_id)); |
| 301 time_wait_list_manager_->ProcessPacket(current_server_address_, | 301 time_wait_list_manager_->ProcessPacket(current_server_address_, |
| 302 current_client_address_, | 302 current_client_address_, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( | 430 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( |
| 431 header.connection_id)); | 431 header.connection_id)); |
| 432 | 432 |
| 433 // Continue parsing the packet to extract the sequence number. Then | 433 // Continue parsing the packet to extract the sequence number. Then |
| 434 // send it to the time wait manager in OnUnathenticatedHeader. | 434 // send it to the time wait manager in OnUnathenticatedHeader. |
| 435 return true; | 435 return true; |
| 436 } | 436 } |
| 437 | 437 |
| 438 } // namespace tools | 438 } // namespace tools |
| 439 } // namespace net | 439 } // namespace net |
| OLD | NEW |