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

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

Issue 324283004: Rename FLAGS_enable_quic_connection_flow_control to FLAGS_enable_quic_connection_flow_control_2, an… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
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_dispatcher.h" 5 #include "net/tools/quic/quic_dispatcher.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 8
9 #include "base/debug/stack_trace.h" 9 #include "base/debug/stack_trace.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 this); 386 this);
387 session->InitializeSession(crypto_config_); 387 session->InitializeSession(crypto_config_);
388 return session; 388 return session;
389 } 389 }
390 390
391 QuicConnection* QuicDispatcher::CreateQuicConnection( 391 QuicConnection* QuicDispatcher::CreateQuicConnection(
392 QuicConnectionId connection_id, 392 QuicConnectionId connection_id,
393 const IPEndPoint& server_address, 393 const IPEndPoint& server_address,
394 const IPEndPoint& client_address) { 394 const IPEndPoint& client_address) {
395 if (FLAGS_enable_quic_stream_flow_control_2 && 395 if (FLAGS_enable_quic_stream_flow_control_2 &&
396 FLAGS_enable_quic_connection_flow_control) { 396 FLAGS_enable_quic_connection_flow_control_2) {
397 DLOG(INFO) << "Creating QuicDispatcher with all versions."; 397 DLOG(INFO) << "Creating QuicDispatcher with all versions.";
398 return new QuicConnection(connection_id, client_address, helper_.get(), 398 return new QuicConnection(connection_id, client_address, helper_.get(),
399 writer_.get(), true, supported_versions_); 399 writer_.get(), true, supported_versions_);
400 } 400 }
401 401
402 if (FLAGS_enable_quic_stream_flow_control_2 && 402 if (FLAGS_enable_quic_stream_flow_control_2 &&
403 !FLAGS_enable_quic_connection_flow_control) { 403 !FLAGS_enable_quic_connection_flow_control_2) {
404 DLOG(INFO) << "Connection flow control disabled, creating QuicDispatcher " 404 DLOG(INFO) << "Connection flow control disabled, creating QuicDispatcher "
405 << "WITHOUT version 19 or higher."; 405 << "WITHOUT version 19 or higher.";
406 return new QuicConnection(connection_id, client_address, helper_.get(), 406 return new QuicConnection(connection_id, client_address, helper_.get(),
407 writer_.get(), true, 407 writer_.get(), true,
408 supported_versions_no_connection_flow_control_); 408 supported_versions_no_connection_flow_control_);
409 } 409 }
410 410
411 DLOG(INFO) << "Flow control disabled, creating QuicDispatcher WITHOUT " 411 DLOG(INFO) << "Flow control disabled, creating QuicDispatcher WITHOUT "
412 << "version 17 or higher."; 412 << "version 17 or higher.";
413 return new QuicConnection(connection_id, client_address, helper_.get(), 413 return new QuicConnection(connection_id, client_address, helper_.get(),
(...skipping 18 matching lines...) Expand all
432 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId( 432 framer_.set_version(time_wait_list_manager_->GetQuicVersionFromConnectionId(
433 header.connection_id)); 433 header.connection_id));
434 434
435 // Continue parsing the packet to extract the sequence number. Then 435 // Continue parsing the packet to extract the sequence number. Then
436 // send it to the time wait manager in OnUnathenticatedHeader. 436 // send it to the time wait manager in OnUnathenticatedHeader.
437 return true; 437 return true;
438 } 438 }
439 439
440 } // namespace tools 440 } // namespace tools
441 } // namespace net 441 } // namespace net
OLDNEW
« net/quic/quic_session_test.cc ('K') | « net/tools/quic/quic_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698