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_time_wait_list_manager.h" | 5 #include "net/tools/quic/quic_time_wait_list_manager.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 if (!WriteToWire(queued_packet)) { | 140 if (!WriteToWire(queued_packet)) { |
141 return; | 141 return; |
142 } | 142 } |
143 pending_packets_queue_.pop_front(); | 143 pending_packets_queue_.pop_front(); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 void QuicTimeWaitListManager::ProcessPacket( | 147 void QuicTimeWaitListManager::ProcessPacket( |
148 const QuicSocketAddress& server_address, | 148 const QuicSocketAddress& server_address, |
149 const QuicSocketAddress& client_address, | 149 const QuicSocketAddress& client_address, |
150 QuicConnectionId connection_id, | 150 QuicConnectionId connection_id) { |
151 const QuicEncryptedPacket& /*packet*/) { | |
152 DCHECK(IsConnectionIdInTimeWait(connection_id)); | 151 DCHECK(IsConnectionIdInTimeWait(connection_id)); |
153 QUIC_DLOG(INFO) << "Processing " << connection_id << " in time wait state."; | 152 QUIC_DLOG(INFO) << "Processing " << connection_id << " in time wait state."; |
154 // TODO(satyamshekhar): Think about handling packets from different client | 153 // TODO(satyamshekhar): Think about handling packets from different client |
155 // addresses. | 154 // addresses. |
156 ConnectionIdMap::iterator it = connection_id_map_.find(connection_id); | 155 ConnectionIdMap::iterator it = connection_id_map_.find(connection_id); |
157 DCHECK(it != connection_id_map_.end()); | 156 DCHECK(it != connection_id_map_.end()); |
158 // Increment the received packet count. | 157 // Increment the received packet count. |
159 ConnectionIdData* connection_data = &it->second; | 158 ConnectionIdData* connection_data = &it->second; |
160 ++(connection_data->num_packets); | 159 ++(connection_data->num_packets); |
161 | 160 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 version(version_), | 316 version(version_), |
318 time_added(time_added_), | 317 time_added(time_added_), |
319 connection_rejected_statelessly(connection_rejected_statelessly) {} | 318 connection_rejected_statelessly(connection_rejected_statelessly) {} |
320 | 319 |
321 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData( | 320 QuicTimeWaitListManager::ConnectionIdData::ConnectionIdData( |
322 ConnectionIdData&& other) = default; | 321 ConnectionIdData&& other) = default; |
323 | 322 |
324 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {} | 323 QuicTimeWaitListManager::ConnectionIdData::~ConnectionIdData() {} |
325 | 324 |
326 } // namespace net | 325 } // namespace net |
OLD | NEW |