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

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

Issue 1326763007: QUIC - Disable QUIC when there is bad packet loss rate (50% of the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | no next file » | 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 enable_insecure_quic(false), 96 enable_insecure_quic(false),
97 enable_quic_for_proxies(false), 97 enable_quic_for_proxies(false),
98 enable_quic_port_selection(true), 98 enable_quic_port_selection(true),
99 quic_always_require_handshake_confirmation(false), 99 quic_always_require_handshake_confirmation(false),
100 quic_disable_connection_pooling(false), 100 quic_disable_connection_pooling(false),
101 quic_load_server_info_timeout_srtt_multiplier(0.25f), 101 quic_load_server_info_timeout_srtt_multiplier(0.25f),
102 quic_enable_connection_racing(false), 102 quic_enable_connection_racing(false),
103 quic_enable_non_blocking_io(false), 103 quic_enable_non_blocking_io(false),
104 quic_disable_disk_cache(false), 104 quic_disable_disk_cache(false),
105 quic_prefer_aes(false), 105 quic_prefer_aes(false),
106 quic_max_number_of_lossy_connections(0), 106 quic_max_number_of_lossy_connections(4),
107 quic_packet_loss_threshold(1.0f), 107 quic_packet_loss_threshold(0.5f),
Ryan Hamilton 2015/09/08 17:53:41 Do you need to change io_thread_unittests.cc to re
ramant (doing other things) 2015/09/08 19:46:10 Done.
108 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize), 108 quic_socket_receive_buffer_size(kQuicSocketReceiveBufferSize),
109 quic_clock(NULL), 109 quic_clock(NULL),
110 quic_random(NULL), 110 quic_random(NULL),
111 quic_max_packet_length(kDefaultMaxPacketSize), 111 quic_max_packet_length(kDefaultMaxPacketSize),
112 enable_user_alternate_protocol_ports(false), 112 enable_user_alternate_protocol_ports(false),
113 quic_crypto_client_stream_factory(NULL), 113 quic_crypto_client_stream_factory(NULL),
114 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), 114 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons),
115 quic_threshold_public_resets_post_handshake(0), 115 quic_threshold_public_resets_post_handshake(0),
116 quic_threshold_timeouts_streams_open(0), 116 quic_threshold_timeouts_streams_open(0),
117 proxy_delegate(NULL) { 117 proxy_delegate(NULL) {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 case WEBSOCKET_SOCKET_POOL: 336 case WEBSOCKET_SOCKET_POOL:
337 return websocket_socket_pool_manager_.get(); 337 return websocket_socket_pool_manager_.get();
338 default: 338 default:
339 NOTREACHED(); 339 NOTREACHED();
340 break; 340 break;
341 } 341 }
342 return NULL; 342 return NULL;
343 } 343 }
344 344
345 } // namespace net 345 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698