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; |
11 | 11 |
12 // If true, it will return as soon as an error is detected while validating | 12 // If true, it will return as soon as an error is detected while validating |
13 // CHLO. | 13 // CHLO. |
14 bool FLAGS_use_early_return_when_verifying_chlo = true; | 14 bool FLAGS_use_early_return_when_verifying_chlo = true; |
15 | 15 |
16 // If true, QUIC crypto reject message will include the reasons for rejection. | |
17 bool FLAGS_send_quic_crypto_reject_reason = false; | |
18 | |
19 // If true, QUIC connections will support FEC protection of data while sending | 16 // If true, QUIC connections will support FEC protection of data while sending |
20 // packets, to reduce latency of data delivery to the application. The client | 17 // packets, to reduce latency of data delivery to the application. The client |
21 // must also request FEC protection for the server to use FEC. | 18 // must also request FEC protection for the server to use FEC. |
22 bool FLAGS_enable_quic_fec = false; | 19 bool FLAGS_enable_quic_fec = false; |
23 | 20 |
24 // When true, defaults to BBR congestion control instead of Cubic. | 21 // When true, defaults to BBR congestion control instead of Cubic. |
25 bool FLAGS_quic_use_bbr_congestion_control = false; | 22 bool FLAGS_quic_use_bbr_congestion_control = false; |
26 | 23 |
27 // 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 |
28 // connection options. | 25 // connection options. |
(...skipping 14 matching lines...) Expand all Loading... |
43 // controlled by QUIC connection options in the config or by enabling BBR | 40 // controlled by QUIC connection options in the config or by enabling BBR |
44 // congestion control. | 41 // congestion control. |
45 bool FLAGS_quic_enable_pacing = false; | 42 bool FLAGS_quic_enable_pacing = false; |
46 | 43 |
47 // If true, the silent close option will be honored. | 44 // If true, the silent close option will be honored. |
48 bool FLAGS_quic_allow_silent_close = true; | 45 bool FLAGS_quic_allow_silent_close = true; |
49 | 46 |
50 // If true, use std::cbrt instead of custom cube root. | 47 // If true, use std::cbrt instead of custom cube root. |
51 bool FLAGS_quic_use_std_cbrt = true; | 48 bool FLAGS_quic_use_std_cbrt = true; |
52 | 49 |
53 // If true, the QUIC packet generator will not attempt to queue multiple ACK | |
54 // frames. | |
55 bool FLAGS_quic_disallow_multiple_pending_ack_frames = true; | |
56 | |
57 // If true, then the source address tokens generated for QUIC connects will | 50 // If true, then the source address tokens generated for QUIC connects will |
58 // store multiple addresses. | 51 // store multiple addresses. |
59 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; | 52 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; |
60 | 53 |
61 // If true, an attempt to send an empty data string with no FIN will return | |
62 // early, and not create a frame. | |
63 bool FLAGS_quic_empty_data_no_fin_early_return = true; | |
64 | |
65 // If true, if min RTT and/or SRTT have not yet been set then initial RTT is | 54 // If true, if min RTT and/or SRTT have not yet been set then initial RTT is |
66 // used to initialize them in a call to QuicConnection::GetStats. | 55 // used to initialize them in a call to QuicConnection::GetStats. |
67 bool FLAGS_quic_use_initial_rtt_for_stats = true; | 56 bool FLAGS_quic_use_initial_rtt_for_stats = true; |
68 | 57 |
69 // If true, uses the last sent packet for the RTO timer instead of the earliest. | 58 // If true, uses the last sent packet for the RTO timer instead of the earliest. |
70 bool FLAGS_quic_rto_uses_last_sent = true; | 59 bool FLAGS_quic_rto_uses_last_sent = true; |
71 | 60 |
72 // If true, attach QuicAckNotifiers to packets rather than individual stream | 61 // If true, attach QuicAckNotifiers to packets rather than individual stream |
73 // frames. | 62 // frames. |
74 bool FLAGS_quic_attach_ack_notifiers_to_packets = true; | 63 bool FLAGS_quic_attach_ack_notifiers_to_packets = true; |
| 64 |
| 65 // If true, the AckNotifierManager is informed about new packets as soon as they |
| 66 // are serialized. |
| 67 bool FLAGS_quic_ack_notifier_informed_on_serialized = true; |
| 68 |
| 69 // If true, QUIC will use the new RTO that waits until an ack arrives to adjust |
| 70 // the congestion window. |
| 71 bool FLAGS_quic_use_new_rto = true; |
| 72 |
| 73 // Time period for which a given connection_id should live in the time-wait |
| 74 // state. |
| 75 int64 FLAGS_quic_time_wait_list_seconds = 5; |
| 76 |
| 77 // Currently, this number is quite conservative. The max QPS limit for an |
| 78 // individual server silo is currently set to 1000 qps, though the actual max |
| 79 // that we see in the wild is closer to 450 qps. Regardless, this means that the |
| 80 // longest time-wait list we should see is 5 seconds * 1000 qps = 5000. If we |
| 81 // allow for an order of magnitude leeway, we have 50000. |
| 82 // |
| 83 // Maximum number of connections on the time-wait list. A negative value implies |
| 84 // no configured limit. |
| 85 int64 FLAGS_quic_time_wait_list_max_connections = 50000; |
| 86 |
| 87 // If true, limit the number of connections on the quic time-wait list using a |
| 88 // flag. |
| 89 bool FLAGS_quic_limit_time_wait_list_size = true; |
OLD | NEW |