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

Unified Diff: net/http/http_network_session.cc

Issue 127463003: Completely disable use of bind() with pseudo-random port selection on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: On Windows, avoid "port selection" in Stable or Beta channels automatically Created 6 years, 11 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/http/http_network_session.h ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index 533c39f7131f164ab0f564c26b269374c277cd1d..17261319d3ea3acb102ff0fb0efb107373b59d70 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -82,6 +82,7 @@ HttpNetworkSession::Params::Params()
time_func(&base::TimeTicks::Now),
enable_quic(false),
enable_quic_https(false),
+ enable_quic_port_selection(true),
quic_clock(NULL),
quic_random(NULL),
quic_max_packet_length(kDefaultMaxPacketSize),
@@ -117,7 +118,8 @@ HttpNetworkSession::HttpNetworkSession(const Params& params)
params.quic_clock ? params. quic_clock :
new QuicClock(),
params.quic_max_packet_length,
- params.quic_supported_versions),
+ params.quic_supported_versions,
+ params.enable_quic_port_selection),
spdy_session_pool_(params.host_resolver,
params.ssl_config_service,
params.http_server_properties,
@@ -200,6 +202,8 @@ base::Value* HttpNetworkSession::QuicInfoToValue() const {
dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue());
dict->SetBoolean("quic_enabled", params_.enable_quic);
dict->SetBoolean("quic_enabled_https", params_.enable_quic_https);
+ dict->SetBoolean("enable_quic_port_selection",
+ params_.enable_quic_port_selection);
dict->SetString("origin_to_force_quic_on",
params_.origin_to_force_quic_on.ToString());
return dict;
« 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