[email protected] | 9bb57c7 | 2014-03-31 20:36:04 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "net/quic/quic_flags.h" |
| 6 | |
[email protected] | 9bb57c7 | 2014-03-31 20:36:04 | [diff] [blame] | 7 | bool FLAGS_quic_allow_oversized_packets_for_test = false; |
[email protected] | 6d9ca3b | 2014-05-13 07:44:22 | [diff] [blame] | 8 | |
[email protected] | c5cc9bd | 2014-03-31 23:17:14 | [diff] [blame] | 9 | // When true, the use time based loss detection instead of nack. |
| 10 | bool FLAGS_quic_use_time_loss_detection = false; |
[email protected] | 6d9ca3b | 2014-05-13 07:44:22 | [diff] [blame] | 11 | |
[email protected] | 19886aaf | 2014-06-19 23:03:18 | [diff] [blame] | 12 | // If true, it will return as soon as an error is detected while validating |
| 13 | // CHLO. |
| 14 | bool FLAGS_use_early_return_when_verifying_chlo = true; |
| 15 | |
[email protected] | cc1aa27 | 2014-06-30 19:48:22 | [diff] [blame] | 16 | // If true, QUIC connections will support FEC protection of data while sending |
| 17 | // packets, to reduce latency of data delivery to the application. The client |
| 18 | // must also request FEC protection for the server to use FEC. |
| 19 | bool FLAGS_enable_quic_fec = false; |
[email protected] | 9693157b | 2014-08-08 11:13:49 | [diff] [blame] | 20 | |
[email protected] | 672631c | 2014-08-16 06:11:45 | [diff] [blame] | 21 | // When true, defaults to BBR congestion control instead of Cubic. |
| 22 | bool FLAGS_quic_use_bbr_congestion_control = false; |
rtenneti | 31e9fd6 | 2014-09-16 05:22:15 | [diff] [blame] | 23 | |
rtenneti | 08b01438 | 2014-10-29 14:03:19 | [diff] [blame] | 24 | // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC |
| 25 | // connection options. |
| 26 | bool FLAGS_quic_allow_bbr = false; |
rtenneti | 2318668 | 2014-10-30 01:49:33 | [diff] [blame] | 27 | |
rtenneti | 85d8971 | 2014-11-20 03:32:24 | [diff] [blame] | 28 | // If true, enables the QUIC bandwidth resumption experiment (triggered by |
| 29 | // Chrome/Finch). |
rtenneti | 5b69b412 | 2014-11-21 19:23:38 | [diff] [blame] | 30 | bool FLAGS_quic_enable_bandwidth_resumption_experiment = true; |
rtenneti | 8910177 | 2014-12-04 22:57:58 | [diff] [blame] | 31 | |
| 32 | // If true, QUIC congestion control will be paced. If false, pacing may be |
| 33 | // controlled by QUIC connection options in the config or by enabling BBR |
| 34 | // congestion control. |
rtenneti | 16a2077 | 2015-02-17 18:58:48 | [diff] [blame] | 35 | bool FLAGS_quic_enable_pacing = true; |
rtenneti | 59338df | 2014-12-19 21:11:01 | [diff] [blame] | 36 | |
rtenneti | 59338df | 2014-12-19 21:11:01 | [diff] [blame] | 37 | // If true, then the source address tokens generated for QUIC connects will |
| 38 | // store multiple addresses. |
| 39 | bool FLAGS_quic_use_multiple_address_in_source_tokens = false; |
rtenneti | 7652bf3 | 2015-01-05 18:51:07 | [diff] [blame] | 40 | |
rtenneti | f4bdb54 | 2015-01-21 14:33:05 | [diff] [blame] | 41 | // Time period for which a given connection_id should live in the time-wait |
| 42 | // state. |
| 43 | int64 FLAGS_quic_time_wait_list_seconds = 5; |
| 44 | |
| 45 | // Currently, this number is quite conservative. The max QPS limit for an |
| 46 | // individual server silo is currently set to 1000 qps, though the actual max |
| 47 | // that we see in the wild is closer to 450 qps. Regardless, this means that the |
| 48 | // longest time-wait list we should see is 5 seconds * 1000 qps = 5000. If we |
| 49 | // allow for an order of magnitude leeway, we have 50000. |
| 50 | // |
| 51 | // Maximum number of connections on the time-wait list. A negative value implies |
| 52 | // no configured limit. |
| 53 | int64 FLAGS_quic_time_wait_list_max_connections = 50000; |
| 54 | |
rtenneti | 16a2077 | 2015-02-17 18:58:48 | [diff] [blame] | 55 | // Use small QUIC packet sizes by default. |
| 56 | bool FLAGS_quic_small_default_packet_size = true; |