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 // When true, the use time based loss detection instead of nack. | 7 // When true, the use time based loss detection instead of nack. |
8 bool FLAGS_quic_use_time_loss_detection = false; | 8 bool FLAGS_quic_use_time_loss_detection = false; |
9 | 9 |
10 // If true, it will return as soon as an error is detected while validating | 10 // If true, it will return as soon as an error is detected while validating |
11 // CHLO. | 11 // CHLO. |
12 bool FLAGS_use_early_return_when_verifying_chlo = true; | 12 bool FLAGS_use_early_return_when_verifying_chlo = true; |
13 | 13 |
14 // If true, QUIC connections will support FEC protection of data while sending | 14 // If true, QUIC connections will support FEC protection of data while sending |
15 // packets, to reduce latency of data delivery to the application. The client | 15 // packets, to reduce latency of data delivery to the application. The client |
16 // must also request FEC protection for the server to use FEC. | 16 // must also request FEC protection for the server to use FEC. |
17 bool FLAGS_enable_quic_fec = true; | 17 bool FLAGS_enable_quic_fec = true; |
18 | 18 |
19 // When true, defaults to BBR congestion control instead of Cubic. | 19 // When true, defaults to BBR congestion control instead of Cubic. |
20 bool FLAGS_quic_use_bbr_congestion_control = false; | 20 bool FLAGS_quic_use_bbr_congestion_control = false; |
21 | 21 |
22 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC | 22 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC |
23 // connection options. | 23 // connection options. |
24 bool FLAGS_quic_allow_bbr = false; | 24 bool FLAGS_quic_allow_bbr = false; |
25 | 25 |
26 // Time period for which a given connection_id should live in the time-wait | 26 // Time period for which a given connection_id should live in the time-wait |
27 // state. | 27 // state. |
28 int64 FLAGS_quic_time_wait_list_seconds = 200; | 28 int64_t FLAGS_quic_time_wait_list_seconds = 200; |
29 | 29 |
30 // Currently, this number is quite conservative. The max QPS limit for an | 30 // Currently, this number is quite conservative. The max QPS limit for an |
31 // individual server silo is currently set to 1000 qps, though the actual max | 31 // individual server silo is currently set to 1000 qps, though the actual max |
32 // that we see in the wild is closer to 450 qps. Regardless, this means that | 32 // that we see in the wild is closer to 450 qps. Regardless, this means that |
33 // the longest time-wait list we should see is 200 seconds * 1000 qps = 200000. | 33 // the longest time-wait list we should see is 200 seconds * 1000 qps = 200000. |
34 // Of course, there are usually many queries per QUIC connection, so we allow a | 34 // Of course, there are usually many queries per QUIC connection, so we allow a |
35 // factor of 3 leeway. | 35 // factor of 3 leeway. |
36 // | 36 // |
37 // Maximum number of connections on the time-wait list. A negative value implies | 37 // Maximum number of connections on the time-wait list. A negative value implies |
38 // no configured limit. | 38 // no configured limit. |
39 int64 FLAGS_quic_time_wait_list_max_connections = 600000; | 39 int64_t FLAGS_quic_time_wait_list_max_connections = 600000; |
40 | 40 |
41 // Enables server-side support for QUIC stateless rejects. | 41 // Enables server-side support for QUIC stateless rejects. |
42 bool FLAGS_enable_quic_stateless_reject_support = true; | 42 bool FLAGS_enable_quic_stateless_reject_support = true; |
43 | 43 |
44 // If ture, allow Ack Decimation to be used for QUIC when requested by the | 44 // If ture, allow Ack Decimation to be used for QUIC when requested by the |
45 // client connection option ACKD. | 45 // client connection option ACKD. |
46 bool FLAGS_quic_ack_decimation = true; | 46 bool FLAGS_quic_ack_decimation = true; |
47 | 47 |
48 // If true, flow controller may grow the receive window size if necessary. | 48 // If true, flow controller may grow the receive window size if necessary. |
49 bool FLAGS_quic_auto_tune_receive_window = true; | 49 bool FLAGS_quic_auto_tune_receive_window = true; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // If true, QUIC servers will attempt to validate a client's source | 123 // If true, QUIC servers will attempt to validate a client's source |
124 // address token using the primary config, even if no server config id | 124 // address token using the primary config, even if no server config id |
125 // is present in the client hello. | 125 // is present in the client hello. |
126 bool FLAGS_quic_validate_stk_without_scid = true; | 126 bool FLAGS_quic_validate_stk_without_scid = true; |
127 | 127 |
128 // If true, use the new write blocked list for QUIC. | 128 // If true, use the new write blocked list for QUIC. |
129 bool FLAGS_quic_new_blocked_list = true; | 129 bool FLAGS_quic_new_blocked_list = true; |
130 | 130 |
131 // If true, use inplace encryption for QUIC. | 131 // If true, use inplace encryption for QUIC. |
132 bool FLAGS_quic_inplace_encryption = true; | 132 bool FLAGS_quic_inplace_encryption = true; |
OLD | NEW |