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

Side by Side Diff: net/tools/quic/quic_client.cc

Issue 97433002: Change the defaults QuicConfig::server_initial_congestion_window to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_server.cc » ('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/tools/quic/quic_client.h" 5 #include "net/tools/quic/quic_client.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <netinet/in.h> 8 #include <netinet/in.h>
9 #include <string.h> 9 #include <string.h>
10 #include <sys/epoll.h> 10 #include <sys/epoll.h>
(...skipping 27 matching lines...) Expand all
38 server_hostname_(server_hostname), 38 server_hostname_(server_hostname),
39 local_port_(0), 39 local_port_(0),
40 fd_(-1), 40 fd_(-1),
41 helper_(CreateQuicConnectionHelper()), 41 helper_(CreateQuicConnectionHelper()),
42 initialized_(false), 42 initialized_(false),
43 packets_dropped_(0), 43 packets_dropped_(0),
44 overflow_supported_(false), 44 overflow_supported_(false),
45 supported_versions_(supported_versions), 45 supported_versions_(supported_versions),
46 print_response_(print_response) { 46 print_response_(print_response) {
47 config_.SetDefaults(); 47 config_.SetDefaults();
48 // TODO(ianswett): Allow the client to change the server's max packet size and
49 // initial congestion window.
50 config_.set_server_initial_congestion_window(kDefaultInitialWindow,
51 kDefaultInitialWindow);
Ryan Hamilton 2013/12/01 18:25:39 There is a line similar to this in quic_stream_fac
ramant (doing other things) 2013/12/02 05:10:50 Didn't see a similar line in quic_stream_factory.c
52 } 48 }
53 49
54 QuicClient::QuicClient(IPEndPoint server_address, 50 QuicClient::QuicClient(IPEndPoint server_address,
55 const string& server_hostname, 51 const string& server_hostname,
56 const QuicConfig& config, 52 const QuicConfig& config,
57 const QuicVersionVector& supported_versions) 53 const QuicVersionVector& supported_versions)
58 : server_address_(server_address), 54 : server_address_(server_address),
59 server_hostname_(server_hostname), 55 server_hostname_(server_hostname),
60 config_(config), 56 config_(config),
61 local_port_(0), 57 local_port_(0),
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 318 }
323 319
324 IPEndPoint client_address(client_ip, client_address_.port()); 320 IPEndPoint client_address(client_ip, client_address_.port());
325 session_->connection()->ProcessUdpPacket( 321 session_->connection()->ProcessUdpPacket(
326 client_address, server_address, packet); 322 client_address, server_address, packet);
327 return true; 323 return true;
328 } 324 }
329 325
330 } // namespace tools 326 } // namespace tools
331 } // namespace net 327 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698