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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // If true, QUIC congestion control will be paced. If false, pacing may be | 39 // If true, QUIC congestion control will be paced. If false, pacing may be |
40 // 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 |
41 // congestion control. | 41 // congestion control. |
42 bool FLAGS_quic_enable_pacing = true; | 42 bool FLAGS_quic_enable_pacing = true; |
43 | 43 |
44 // If true, then the source address tokens generated for QUIC connects will | 44 // If true, then the source address tokens generated for QUIC connects will |
45 // store multiple addresses. | 45 // store multiple addresses. |
46 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; | 46 bool FLAGS_quic_use_multiple_address_in_source_tokens = false; |
47 | 47 |
48 // If true, attach QuicAckNotifiers to packets rather than individual stream | |
49 // frames. | |
50 bool FLAGS_quic_attach_ack_notifiers_to_packets = true; | |
51 | |
52 // Time period for which a given connection_id should live in the time-wait | 48 // Time period for which a given connection_id should live in the time-wait |
53 // state. | 49 // state. |
54 int64 FLAGS_quic_time_wait_list_seconds = 5; | 50 int64 FLAGS_quic_time_wait_list_seconds = 5; |
55 | 51 |
56 // Currently, this number is quite conservative. The max QPS limit for an | 52 // Currently, this number is quite conservative. The max QPS limit for an |
57 // individual server silo is currently set to 1000 qps, though the actual max | 53 // individual server silo is currently set to 1000 qps, though the actual max |
58 // that we see in the wild is closer to 450 qps. Regardless, this means that the | 54 // that we see in the wild is closer to 450 qps. Regardless, this means that the |
59 // longest time-wait list we should see is 5 seconds * 1000 qps = 5000. If we | 55 // longest time-wait list we should see is 5 seconds * 1000 qps = 5000. If we |
60 // allow for an order of magnitude leeway, we have 50000. | 56 // allow for an order of magnitude leeway, we have 50000. |
61 // | 57 // |
62 // Maximum number of connections on the time-wait list. A negative value implies | 58 // Maximum number of connections on the time-wait list. A negative value implies |
63 // no configured limit. | 59 // no configured limit. |
64 int64 FLAGS_quic_time_wait_list_max_connections = 50000; | 60 int64 FLAGS_quic_time_wait_list_max_connections = 50000; |
65 | 61 |
66 // If true, limit the number of connections on the quic time-wait list using a | 62 // If true, limit the number of connections on the quic time-wait list using a |
67 // flag. | 63 // flag. |
68 bool FLAGS_quic_limit_time_wait_list_size = true; | 64 bool FLAGS_quic_limit_time_wait_list_size = true; |
69 | 65 |
70 // Use small QUIC packet sizes by default. | 66 // Use small QUIC packet sizes by default. |
71 bool FLAGS_quic_small_default_packet_size = true; | 67 bool FLAGS_quic_small_default_packet_size = true; |
OLD | NEW |