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

Unified Diff: net/quic/quic_connection.cc

Issue 683263003: Turning off CID truncation for proxied connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Protect_UpdateRTT_from_negative_deltas_78580114
Patch Set: Created 6 years, 2 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 | « net/quic/quic_connection.h ('k') | net/tools/quic/quic_client.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 f9c2e207a4dcfa12ce047f4471cb33e66971948d..f49b058c24999780bb6d936d4dbe3ba0feb22ea1 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -232,7 +232,8 @@ QuicConnection::QuicConnection(QuicConnectionId connection_id,
peer_ip_changed_(false),
peer_port_changed_(false),
self_ip_changed_(false),
- self_port_changed_(false) {
+ self_port_changed_(false),
+ can_truncate_connection_ids_(true) {
DVLOG(1) << ENDPOINT << "Created connection with connection_id: "
<< connection_id;
if (!FLAGS_quic_unified_timeouts) {
@@ -271,7 +272,8 @@ void QuicConnection::SetFromConfig(const QuicConfig& config) {
}
sent_packet_manager_.SetFromConfig(config);
if (FLAGS_allow_truncated_connection_ids_for_quic &&
- config.HasReceivedBytesForConnectionId()) {
+ config.HasReceivedBytesForConnectionId() &&
+ can_truncate_connection_ids_) {
packet_generator_.SetConnectionIdLength(
config.ReceivedBytesForConnectionId());
}
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/tools/quic/quic_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698