Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: net/quic/quic_connection.cc

Issue 1334583002: relnote: Deprecate FLAGS_quic_allow_ip_migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Cache_align_encryption_101462412
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_flags.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 } 1450 }
1451 } 1451 }
1452 1452
1453 void QuicConnection::WriteIfNotBlocked() { 1453 void QuicConnection::WriteIfNotBlocked() {
1454 if (!writer_->IsWriteBlocked()) { 1454 if (!writer_->IsWriteBlocked()) {
1455 OnCanWrite(); 1455 OnCanWrite();
1456 } 1456 }
1457 } 1457 }
1458 1458
1459 bool QuicConnection::ProcessValidatedPacket() { 1459 bool QuicConnection::ProcessValidatedPacket() {
1460 if ((peer_ip_changed_ && !FLAGS_quic_allow_ip_migration) || 1460 if (self_ip_changed_ || self_port_changed_) {
1461 self_ip_changed_ || self_port_changed_) { 1461 SendConnectionCloseWithDetails(QUIC_ERROR_MIGRATING_ADDRESS,
1462 SendConnectionCloseWithDetails( 1462 "Self address migration is not supported.");
1463 QUIC_ERROR_MIGRATING_ADDRESS,
1464 "Neither IP address migration, nor self port migration are supported.");
1465 return false; 1463 return false;
1466 } 1464 }
1467 1465
1468 // TODO(fayang): Use peer_address_changed_ instead of peer_ip_changed_ and 1466 // TODO(fayang): Use peer_address_changed_ instead of peer_ip_changed_ and
1469 // peer_port_changed_ once FLAGS_quic_allow_ip_migration is deprecated. 1467 // peer_port_changed_ once FLAGS_quic_allow_ip_migration is deprecated.
1470 if (peer_ip_changed_ || peer_port_changed_) { 1468 if (peer_ip_changed_ || peer_port_changed_) {
1471 IPEndPoint old_peer_address = peer_address_; 1469 IPEndPoint old_peer_address = peer_address_;
1472 peer_address_ = IPEndPoint( 1470 peer_address_ = IPEndPoint(
1473 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(), 1471 peer_ip_changed_ ? migrating_peer_ip_ : peer_address_.address(),
1474 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port()); 1472 peer_port_changed_ ? migrating_peer_port_ : peer_address_.port());
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
2406 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1; 2404 packet_number_of_last_sent_packet_ + packets_between_mtu_probes_ + 1;
2407 ++mtu_probe_count_; 2405 ++mtu_probe_count_;
2408 2406
2409 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_; 2407 DVLOG(2) << "Sending a path MTU discovery packet #" << mtu_probe_count_;
2410 SendMtuDiscoveryPacket(mtu_discovery_target_); 2408 SendMtuDiscoveryPacket(mtu_discovery_target_);
2411 2409
2412 DCHECK(!mtu_discovery_alarm_->IsSet()); 2410 DCHECK(!mtu_discovery_alarm_->IsSet());
2413 } 2411 }
2414 2412
2415 } // namespace net 2413 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_flags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698