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

Unified Diff: net/quic/quic_connection.cc

Issue 451903002: Deprecate rolled out flag: FLAGS_quic_allow_port_migration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Along_with_sending_SCUP_72652054
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/quic_flags.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 383db69e135b97068c40ede17bd99a01ade45e90..f40b34dfe590af5b07e40d2d6115ad8c8e69a2ba 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -1179,17 +1179,15 @@ void QuicConnection::WriteIfNotBlocked() {
}
bool QuicConnection::ProcessValidatedPacket() {
- if ((!FLAGS_quic_allow_port_migration && peer_port_changed_) ||
- peer_ip_changed_ || self_ip_changed_ || self_port_changed_) {
+ if (peer_ip_changed_ || self_ip_changed_ || self_port_changed_) {
SendConnectionCloseWithDetails(
QUIC_ERROR_MIGRATING_ADDRESS,
"Neither IP address migration, nor self port migration are supported.");
return false;
}
- // Port migration is supported, do it now if port has changed.
- if (FLAGS_quic_allow_port_migration &&
- peer_port_changed_) {
+ // Peer port migration is supported, do it now if port has changed.
+ if (peer_port_changed_) {
DVLOG(1) << ENDPOINT << "Peer's port changed from "
<< peer_address_.port() << " to " << migrating_peer_port_
<< ", migrating connection.";
« 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