OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/quic/quic_flags.h" | 5 #include "net/quic/quic_flags.h" |
6 | 6 |
7 bool FLAGS_quic_allow_oversized_packets_for_test = false; | 7 bool FLAGS_quic_allow_oversized_packets_for_test = false; |
8 | 8 |
9 // When true, the use time based loss detection instead of nack. | 9 // When true, the use time based loss detection instead of nack. |
10 bool FLAGS_quic_use_time_loss_detection = false; | 10 bool FLAGS_quic_use_time_loss_detection = false; |
(...skipping 11 matching lines...) Expand all Loading... |
22 bool FLAGS_quic_use_bbr_congestion_control = false; | 22 bool FLAGS_quic_use_bbr_congestion_control = false; |
23 | 23 |
24 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC | 24 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC |
25 // connection options. | 25 // connection options. |
26 bool FLAGS_quic_allow_bbr = false; | 26 bool FLAGS_quic_allow_bbr = false; |
27 | 27 |
28 // If true, enables the QUIC bandwidth resumption experiment (triggered by | 28 // If true, enables the QUIC bandwidth resumption experiment (triggered by |
29 // Chrome/Finch). | 29 // Chrome/Finch). |
30 bool FLAGS_quic_enable_bandwidth_resumption_experiment = true; | 30 bool FLAGS_quic_enable_bandwidth_resumption_experiment = true; |
31 | 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. | |
35 bool FLAGS_quic_enable_pacing = true; | |
36 | |
37 // If true, then the source address tokens generated for QUIC connects will | 32 // If true, then the source address tokens generated for QUIC connects will |
38 // store multiple addresses. | 33 // store multiple addresses. |
39 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; | 34 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; |
40 | 35 |
41 // Time period for which a given connection_id should live in the time-wait | 36 // Time period for which a given connection_id should live in the time-wait |
42 // state. | 37 // state. |
43 int64 FLAGS_quic_time_wait_list_seconds = 5; | 38 int64 FLAGS_quic_time_wait_list_seconds = 5; |
44 | 39 |
45 // Currently, this number is quite conservative. The max QPS limit for an | 40 // 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 | 41 // 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 | 42 // 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 | 43 // 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. | 44 // allow for an order of magnitude leeway, we have 50000. |
50 // | 45 // |
51 // Maximum number of connections on the time-wait list. A negative value implies | 46 // Maximum number of connections on the time-wait list. A negative value implies |
52 // no configured limit. | 47 // no configured limit. |
53 int64 FLAGS_quic_time_wait_list_max_connections = 50000; | 48 int64 FLAGS_quic_time_wait_list_max_connections = 50000; |
54 | 49 |
55 // Use small QUIC packet sizes by default. | 50 // Use small QUIC packet sizes by default. |
56 bool FLAGS_quic_small_default_packet_size = true; | 51 bool FLAGS_quic_small_default_packet_size = true; |
OLD | NEW |