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/quic/quic_connection.h" | 5 #include "net/quic/quic_connection.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1356 IPEndPoint old_peer_address = peer_address_; | 1356 IPEndPoint old_peer_address = peer_address_; |
1357 peer_address_ = IPEndPoint( | 1357 peer_address_ = IPEndPoint( |
1358 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(), | 1358 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(), |
1359 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port()); | 1359 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port()); |
1360 | 1360 |
1361 DVLOG(1) << ENDPOINT << "Peer's ip:port changed from " | 1361 DVLOG(1) << ENDPOINT << "Peer's ip:port changed from " |
1362 << old_peer_address.ToString() << " to " | 1362 << old_peer_address.ToString() << " to " |
1363 << peer_address_.ToString() << ", migrating connection."; | 1363 << peer_address_.ToString() << ", migrating connection."; |
1364 | 1364 |
1365 visitor_->OnConnectionMigration(); | 1365 visitor_->OnConnectionMigration(); |
| 1366 sent_packet_manager_.OnConnectionMigration(type); |
1366 } | 1367 } |
1367 | 1368 |
1368 time_of_last_received_packet_ = clock_->Now(); | 1369 time_of_last_received_packet_ = clock_->Now(); |
1369 DVLOG(1) << ENDPOINT << "time of last received packet: " | 1370 DVLOG(1) << ENDPOINT << "time of last received packet: " |
1370 << time_of_last_received_packet_.ToDebuggingValue(); | 1371 << time_of_last_received_packet_.ToDebuggingValue(); |
1371 | 1372 |
1372 if (last_size_ > largest_received_packet_size_) { | 1373 if (last_size_ > largest_received_packet_size_) { |
1373 largest_received_packet_size_ = last_size_; | 1374 largest_received_packet_size_ = last_size_; |
1374 } | 1375 } |
1375 | 1376 |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2337 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; | 2338 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; |
2338 ++mtu_probe_count_; | 2339 ++mtu_probe_count_; |
2339 | 2340 |
2340 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; | 2341 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; |
2341 SendMtuDiscoveryPacket(mtu_discovery_target_); | 2342 SendMtuDiscoveryPacket(mtu_discovery_target_); |
2342 | 2343 |
2343 DCHECK(!mtu_discovery_alarm_->IsSet()); | 2344 DCHECK(!mtu_discovery_alarm_->IsSet()); |
2344 } | 2345 } |
2345 | 2346 |
2346 } // namespace net | 2347 } // namespace net |
OLD | NEW |