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

Unified Diff: net/tools/quic/quic_simple_client.cc

Issue 1240953002: Allow QuicClient to set connection MTU before the handshake is sent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Cleanup_changes_97160447
Patch Set: Created 5 years, 5 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/tools/quic/quic_simple_client.h ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client.cc
diff --git a/net/tools/quic/quic_simple_client.cc b/net/tools/quic/quic_simple_client.cc
index bbd314e7a3740209fec374dd277bc4391c32e2c1..f5ede4fbbe0930ce1fce9409dfed64afc77fe320 100644
--- a/net/tools/quic/quic_simple_client.cc
+++ b/net/tools/quic/quic_simple_client.cc
@@ -49,8 +49,8 @@ QuicSimpleClient::QuicSimpleClient(IPEndPoint server_address,
helper_(CreateQuicConnectionHelper()),
initialized_(false),
supported_versions_(supported_versions),
- weak_factory_(this) {
-}
+ initial_max_packet_length_(0),
+ weak_factory_(this) {}
QuicSimpleClient::~QuicSimpleClient() {
if (connected()) {
@@ -168,6 +168,9 @@ void QuicSimpleClient::StartConnect() {
supported_versions_);
session_.reset(CreateQuicClientSession(config_, connection_, server_id_,
&crypto_config_));
+ if (initial_max_packet_length_ != 0) {
+ session_->connection()->set_max_packet_length(initial_max_packet_length_);
+ }
session_->Initialize();
session_->CryptoConnect();
}
« no previous file with comments | « net/tools/quic/quic_simple_client.h ('k') | net/tools/quic/quic_simple_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698