OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Handles packets for connection_ids in time wait state by discarding the | 5 // Handles packets for connection_ids in time wait state by discarding the |
6 // packet and sending the clients a public reset packet with exponential | 6 // packet and sending the clients a public reset packet with exponential |
7 // backoff. | 7 // backoff. |
8 | 8 |
9 #ifndef NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 9 #ifndef NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
10 #define NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 10 #define NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 std::deque<QueuedPacket*> pending_packets_queue_; | 167 std::deque<QueuedPacket*> pending_packets_queue_; |
168 | 168 |
169 // Used to schedule alarms to delete old connection_ids which have been in the | 169 // Used to schedule alarms to delete old connection_ids which have been in the |
170 // list for too long. | 170 // list for too long. |
171 QuicConnectionHelperInterface* helper_; | 171 QuicConnectionHelperInterface* helper_; |
172 | 172 |
173 // Time period for which connection_ids should remain in time wait state. | 173 // Time period for which connection_ids should remain in time wait state. |
174 const QuicTime::Delta time_wait_period_; | 174 const QuicTime::Delta time_wait_period_; |
175 | 175 |
176 // Alarm registered with the connection helper to clean up connection_ids that | 176 // Alarm registered with the connection helper to clean up connection_ids that |
177 // have | 177 // have out lived their duration in time wait state. |
178 // out lived their duration in time wait state. | |
179 scoped_ptr<QuicAlarm> connection_id_clean_up_alarm_; | 178 scoped_ptr<QuicAlarm> connection_id_clean_up_alarm_; |
180 | 179 |
181 // Interface that writes given buffer to the socket. | 180 // Interface that writes given buffer to the socket. |
182 QuicPacketWriter* writer_; | 181 QuicPacketWriter* writer_; |
183 | 182 |
184 // Interface that manages blocked writers. | 183 // Interface that manages blocked writers. |
185 QuicServerSessionVisitor* visitor_; | 184 QuicServerSessionVisitor* visitor_; |
186 | 185 |
187 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); | 186 DISALLOW_COPY_AND_ASSIGN(QuicTimeWaitListManager); |
188 }; | 187 }; |
189 | 188 |
190 } // namespace net | 189 } // namespace net |
191 | 190 |
192 #endif // NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ | 191 #endif // NET_QUIC_QUIC_TIME_WAIT_LIST_MANAGER_H_ |
OLD | NEW |