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 |
(...skipping 23 matching lines...) Expand all Loading... |
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_t 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 | |
45 // client connection option ACKD. | |
46 bool FLAGS_quic_ack_decimation = true; | |
47 | |
48 // This flag is not in use, just to keep consistency for shared code. | 44 // This flag is not in use, just to keep consistency for shared code. |
49 bool FLAGS_quic_always_log_bugs_for_tests = false; | 45 bool FLAGS_quic_always_log_bugs_for_tests = false; |
50 | 46 |
51 // If true, flow controller may grow the receive window size if necessary. | 47 // If true, flow controller may grow the receive window size if necessary. |
52 bool FLAGS_quic_auto_tune_receive_window = true; | 48 bool FLAGS_quic_auto_tune_receive_window = true; |
53 | 49 |
54 // If true, multipath is enabled for the connection. | 50 // If true, multipath is enabled for the connection. |
55 bool FLAGS_quic_enable_multipath = false; | 51 bool FLAGS_quic_enable_multipath = false; |
56 | 52 |
57 // Limits QUIC's max CWND to 200 packets. | 53 // Limits QUIC's max CWND to 200 packets. |
(...skipping 13 matching lines...) Expand all Loading... |
71 // Net.QuicSession.HeadersHOLBlockedTime. | 67 // Net.QuicSession.HeadersHOLBlockedTime. |
72 bool FLAGS_quic_measure_headers_hol_blocking_time = true; | 68 bool FLAGS_quic_measure_headers_hol_blocking_time = true; |
73 | 69 |
74 // Disable QUIC's userspace pacing. | 70 // Disable QUIC's userspace pacing. |
75 bool FLAGS_quic_disable_pacing = false; | 71 bool FLAGS_quic_disable_pacing = false; |
76 | 72 |
77 // If true, Use QUIC's GeneralLossAlgorithm implementation instead of | 73 // If true, Use QUIC's GeneralLossAlgorithm implementation instead of |
78 // TcpLossAlgorithm or TimeLossAlgorithm. | 74 // TcpLossAlgorithm or TimeLossAlgorithm. |
79 bool FLAGS_quic_general_loss_algorithm = true; | 75 bool FLAGS_quic_general_loss_algorithm = true; |
80 | 76 |
81 // If true, only migrate QUIC connections when client address changes are | |
82 // considered to be caused by NATs. | |
83 bool FLAGS_quic_disable_non_nat_address_migration = true; | |
84 | |
85 // If true, QuicOneBlockArenas will allocate out of their local memory. | |
86 // Otherwise, they will always use the heap. | |
87 bool FLAGS_quic_enable_arena_allocation = true; | |
88 | |
89 // If true, QUIC connections will timeout when packets are not being recieved, | 77 // If true, QUIC connections will timeout when packets are not being recieved, |
90 // even if they are being sent. | 78 // even if they are being sent. |
91 bool FLAGS_quic_use_new_idle_timeout = true; | 79 bool FLAGS_quic_use_new_idle_timeout = true; |
92 | 80 |
93 // If true, replace QuicFrameList with StreamSequencerBuffer as underlying data | 81 // If true, replace QuicFrameList with StreamSequencerBuffer as underlying data |
94 // structure for QuicStreamSequencer bufferring. | 82 // structure for QuicStreamSequencer bufferring. |
95 bool FLAGS_quic_use_stream_sequencer_buffer = true; | 83 bool FLAGS_quic_use_stream_sequencer_buffer = true; |
96 | 84 |
97 // If true, don't send QUIC packets if the send alarm is set. | 85 // If true, don't send QUIC packets if the send alarm is set. |
98 bool FLAGS_quic_respect_send_alarm2 = true; | 86 bool FLAGS_quic_respect_send_alarm2 = true; |
99 | 87 |
100 // If ture, sets callback pointer to nullptr after calling Cancel() in | 88 // If ture, sets callback pointer to nullptr after calling Cancel() in |
101 // QuicCryptoServerStream::CancelOutstandingCallbacks. | 89 // QuicCryptoServerStream::CancelOutstandingCallbacks. |
102 bool FLAGS_quic_set_client_hello_cb_nullptr = true; | 90 bool FLAGS_quic_set_client_hello_cb_nullptr = true; |
103 | 91 |
104 // If treu, Only track a single retransmission in QUIC's TransmissionInfo | |
105 // struct. | |
106 bool FLAGS_quic_track_single_retransmission = true; | |
107 | |
108 // If true, allow each quic stream to write 16k blocks rather than doing a round | 92 // If true, allow each quic stream to write 16k blocks rather than doing a round |
109 // robin of one packet per session when ack clocked or paced. | 93 // robin of one packet per session when ack clocked or paced. |
110 bool FLAGS_quic_batch_writes = true; | 94 bool FLAGS_quic_batch_writes = true; |
111 | 95 |
112 // If true, QUIC sessions will write block streams that attempt to write | 96 // If true, QUIC sessions will write block streams that attempt to write |
113 // unencrypted data. | 97 // unencrypted data. |
114 bool FLAGS_quic_block_unencrypted_writes = true; | 98 bool FLAGS_quic_block_unencrypted_writes = true; |
115 | 99 |
116 // If true, Close the connection instead of writing unencrypted stream data. | 100 // If true, Close the connection instead of writing unencrypted stream data. |
117 bool FLAGS_quic_never_write_unencrypted_data = true; | 101 bool FLAGS_quic_never_write_unencrypted_data = true; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // serialized packet when frames are retransmitted. | 153 // serialized packet when frames are retransmitted. |
170 bool FLAGS_quic_retransmit_via_onserializedpacket = true; | 154 bool FLAGS_quic_retransmit_via_onserializedpacket = true; |
171 | 155 |
172 // If true, for QUIC authenticated encryption algorithms, last 8 bytes | 156 // If true, for QUIC authenticated encryption algorithms, last 8 bytes |
173 // of IV comprise packet path id and lower 7 bytes of packet number. | 157 // of IV comprise packet path id and lower 7 bytes of packet number. |
174 bool FLAGS_quic_include_path_id_in_iv = true; | 158 bool FLAGS_quic_include_path_id_in_iv = true; |
175 | 159 |
176 // If true, make sure new incoming streams correctly cede to higher | 160 // If true, make sure new incoming streams correctly cede to higher |
177 // priority (or batch) streams when doing QUIC writes. | 161 // priority (or batch) streams when doing QUIC writes. |
178 bool FLAGS_quic_cede_correctly = true; | 162 bool FLAGS_quic_cede_correctly = true; |
| 163 |
| 164 // Has QuicCryptoProof hold a ref to the primary_config instead of storing its |
| 165 // SCID. |
| 166 bool FLAGS_quic_crypto_proof_use_ref = true; |
| 167 |
| 168 // If on, max number of incoming and outgoing streams will be different. |
| 169 // Incoming will be a little higher than outgoing to tolerate race condition. |
| 170 bool FLAGS_quic_different_max_num_open_streams = true; |
OLD | NEW |