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

Side by Side Diff: net/http/http_network_session.cc

Issue 1973403002: QUIC - Add back to code to experiment with delay_tcp_race. By default, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « net/http/http_network_session.h ('k') | net/quic/quic_stream_factory.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/http/http_network_session.h" 5 #include "net/http/http_network_session.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 quic_always_require_handshake_confirmation(false), 106 quic_always_require_handshake_confirmation(false),
107 quic_disable_connection_pooling(false), 107 quic_disable_connection_pooling(false),
108 quic_load_server_info_timeout_srtt_multiplier(0.25f), 108 quic_load_server_info_timeout_srtt_multiplier(0.25f),
109 quic_enable_connection_racing(false), 109 quic_enable_connection_racing(false),
110 quic_enable_non_blocking_io(false), 110 quic_enable_non_blocking_io(false),
111 quic_disable_disk_cache(false), 111 quic_disable_disk_cache(false),
112 quic_prefer_aes(false), 112 quic_prefer_aes(false),
113 quic_max_number_of_lossy_connections(0), 113 quic_max_number_of_lossy_connections(0),
114 quic_packet_loss_threshold(1.0f), 114 quic_packet_loss_threshold(1.0f),
115 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), 115 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize),
116 quic_delay_tcp_race(true),
116 quic_max_server_configs_stored_in_properties(0u), 117 quic_max_server_configs_stored_in_properties(0u),
117 quic_clock(NULL), 118 quic_clock(NULL),
118 quic_random(NULL), 119 quic_random(NULL),
119 quic_max_packet_length(kDefaultMaxPacketSize), 120 quic_max_packet_length(kDefaultMaxPacketSize),
120 enable_user_alternate_protocol_ports(false), 121 enable_user_alternate_protocol_ports(false),
121 quic_crypto_client_stream_factory( 122 quic_crypto_client_stream_factory(
122 QuicCryptoClientStreamFactory::GetDefaultFactory()), 123 QuicCryptoClientStreamFactory::GetDefaultFactory()),
123 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), 124 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons),
124 quic_threshold_public_resets_post_handshake(0), 125 quic_threshold_public_resets_post_handshake(0),
125 quic_threshold_timeouts_streams_open(0), 126 quic_threshold_timeouts_streams_open(0),
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 params.quic_enable_connection_racing, 172 params.quic_enable_connection_racing,
172 params.quic_enable_non_blocking_io, 173 params.quic_enable_non_blocking_io,
173 params.quic_disable_disk_cache, 174 params.quic_disable_disk_cache,
174 params.quic_prefer_aes, 175 params.quic_prefer_aes,
175 params.quic_max_number_of_lossy_connections, 176 params.quic_max_number_of_lossy_connections,
176 params.quic_packet_loss_threshold, 177 params.quic_packet_loss_threshold,
177 params.quic_max_recent_disabled_reasons, 178 params.quic_max_recent_disabled_reasons,
178 params.quic_threshold_public_resets_post_handshake, 179 params.quic_threshold_public_resets_post_handshake,
179 params.quic_threshold_timeouts_streams_open, 180 params.quic_threshold_timeouts_streams_open,
180 params.quic_socket_receive_buffer_size, 181 params.quic_socket_receive_buffer_size,
182 params.quic_delay_tcp_race,
181 params.quic_max_server_configs_stored_in_properties, 183 params.quic_max_server_configs_stored_in_properties,
182 params.quic_close_sessions_on_ip_change, 184 params.quic_close_sessions_on_ip_change,
183 params.disable_quic_on_timeout_with_open_streams, 185 params.disable_quic_on_timeout_with_open_streams,
184 params.quic_idle_connection_timeout_seconds, 186 params.quic_idle_connection_timeout_seconds,
185 params.quic_migrate_sessions_on_network_change, 187 params.quic_migrate_sessions_on_network_change,
186 params.quic_migrate_sessions_early, 188 params.quic_migrate_sessions_early,
187 params.quic_connection_options, 189 params.quic_connection_options,
188 params.enable_token_binding), 190 params.enable_token_binding),
189 spdy_session_pool_(params.host_resolver, 191 spdy_session_pool_(params.host_resolver,
190 params.ssl_config_service, 192 params.ssl_config_service,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 326
325 dict->SetDouble("load_server_info_timeout_srtt_multiplier", 327 dict->SetDouble("load_server_info_timeout_srtt_multiplier",
326 params_.quic_load_server_info_timeout_srtt_multiplier); 328 params_.quic_load_server_info_timeout_srtt_multiplier);
327 dict->SetBoolean("enable_connection_racing", 329 dict->SetBoolean("enable_connection_racing",
328 params_.quic_enable_connection_racing); 330 params_.quic_enable_connection_racing);
329 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache); 331 dict->SetBoolean("disable_disk_cache", params_.quic_disable_disk_cache);
330 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes); 332 dict->SetBoolean("prefer_aes", params_.quic_prefer_aes);
331 dict->SetInteger("max_number_of_lossy_connections", 333 dict->SetInteger("max_number_of_lossy_connections",
332 params_.quic_max_number_of_lossy_connections); 334 params_.quic_max_number_of_lossy_connections);
333 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold); 335 dict->SetDouble("packet_loss_threshold", params_.quic_packet_loss_threshold);
334 dict->SetBoolean("delay_tcp_race", true); 336 dict->SetBoolean("delay_tcp_race", params_.quic_delay_tcp_race);
335 dict->SetInteger("max_server_configs_stored_in_properties", 337 dict->SetInteger("max_server_configs_stored_in_properties",
336 params_.quic_max_server_configs_stored_in_properties); 338 params_.quic_max_server_configs_stored_in_properties);
337 dict->SetInteger("idle_connection_timeout_seconds", 339 dict->SetInteger("idle_connection_timeout_seconds",
338 params_.quic_idle_connection_timeout_seconds); 340 params_.quic_idle_connection_timeout_seconds);
339 dict->SetBoolean("disable_preconnect_if_0rtt", 341 dict->SetBoolean("disable_preconnect_if_0rtt",
340 params_.quic_disable_preconnect_if_0rtt); 342 params_.quic_disable_preconnect_if_0rtt);
341 dict->SetBoolean("disable_quic_on_timeout_with_open_streams", 343 dict->SetBoolean("disable_quic_on_timeout_with_open_streams",
342 params_.disable_quic_on_timeout_with_open_streams); 344 params_.disable_quic_on_timeout_with_open_streams);
343 dict->SetString("disabled_reason", 345 dict->SetString("disabled_reason",
344 quic_stream_factory_.QuicDisabledReasonString()); 346 quic_stream_factory_.QuicDisabledReasonString());
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 case WEBSOCKET_SOCKET_POOL: 404 case WEBSOCKET_SOCKET_POOL:
403 return websocket_socket_pool_manager_.get(); 405 return websocket_socket_pool_manager_.get();
404 default: 406 default:
405 NOTREACHED(); 407 NOTREACHED();
406 break; 408 break;
407 } 409 }
408 return NULL; 410 return NULL;
409 } 411 }
410 412
411 } // namespace net 413 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698