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/core/quic_flags.h" | 5 #include "net/quic/core/quic_flags.h" |
6 | 6 |
7 // If true, it will return as soon as an error is detected while validating | 7 // If true, it will return as soon as an error is detected while validating |
8 // CHLO. | 8 // CHLO. |
9 bool FLAGS_use_early_return_when_verifying_chlo = true; | 9 bool FLAGS_use_early_return_when_verifying_chlo = true; |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // flags. | 72 // flags. |
73 bool FLAGS_quic_use_old_public_reset_packets = true; | 73 bool FLAGS_quic_use_old_public_reset_packets = true; |
74 | 74 |
75 // Adds a RATE connection option to do rate based sending. | 75 // Adds a RATE connection option to do rate based sending. |
76 bool FLAGS_quic_rate_based_sending = true; | 76 bool FLAGS_quic_rate_based_sending = true; |
77 | 77 |
78 // If true, QUIC will use cheap stateless rejects without creating a full | 78 // If true, QUIC will use cheap stateless rejects without creating a full |
79 // connection. | 79 // connection. |
80 bool FLAGS_quic_use_cheap_stateless_rejects = false; | 80 bool FLAGS_quic_use_cheap_stateless_rejects = false; |
81 | 81 |
82 // If true, treat timestamps from SO_TIMESTAMPING as QuicWallTimes rather | |
83 // than QuicTimes. | |
84 bool FLAGS_quic_socket_walltimestamps = true; | |
85 | |
86 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the | 82 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the |
87 // connection. | 83 // connection. |
88 bool FLAGS_quic_respect_http2_settings_frame = true; | 84 bool FLAGS_quic_respect_http2_settings_frame = true; |
89 | 85 |
90 // Do not use a QuicAckListener in order to confirm a larger Path MTU. | 86 // Do not use a QuicAckListener in order to confirm a larger Path MTU. |
91 bool FLAGS_quic_no_mtu_discovery_ack_listener = true; | 87 bool FLAGS_quic_no_mtu_discovery_ack_listener = true; |
92 | 88 |
93 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no | 89 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no |
94 // longer necessary. | 90 // longer necessary. |
95 bool FLAGS_quic_simple_packet_number_length = true; | 91 bool FLAGS_quic_simple_packet_number_length = true; |
96 | 92 |
97 // If true, enables QUIC_VERSION_35. | 93 // If true, enables QUIC_VERSION_35. |
98 bool FLAGS_quic_enable_version_35 = true; | 94 bool FLAGS_quic_enable_version_35 = true; |
99 | 95 |
| 96 // If true, re-enables QUIC_VERSION_36. |
| 97 bool FLAGS_quic_enable_version_36 = true; |
| 98 |
100 // If true, enables QUIC_VERSION_36. | 99 // If true, enables QUIC_VERSION_36. |
101 bool FLAGS_quic_enable_version_36 = true; | 100 bool FLAGS_quic_enable_version_36_v2 = false; |
102 | 101 |
103 // If true, requires support for X509 certificates in QUIC CHLO PDMDs. | 102 // If true, requires support for X509 certificates in QUIC CHLO PDMDs. |
104 bool FLAGS_quic_require_x509 = true; | 103 bool FLAGS_quic_require_x509 = true; |
105 | 104 |
106 // If true, deprecate safeguards for b/26023400. | 105 // If true, deprecate safeguards for b/26023400. |
107 bool FLAGS_quic_deprecate_kfixd = false; | 106 bool FLAGS_quic_deprecate_kfixd = true; |
108 | |
109 // If true, a connection does not migrate on an old packet even the peer address | |
110 // changes. | |
111 bool FLAGS_quic_do_not_migrate_on_old_packet = true; | |
112 | 107 |
113 // If true, use async codepaths to invoke ProofSource::GetProof. | 108 // If true, use async codepaths to invoke ProofSource::GetProof. |
114 bool FLAGS_enable_async_get_proof = false; | 109 bool FLAGS_enable_async_get_proof = false; |
115 | 110 |
116 // If true, neuter null encrypted packets before sending the next handshake | 111 // If true, neuter null encrypted packets before sending the next handshake |
117 // message. | 112 // message. |
118 bool FLAGS_quic_neuter_unencrypted_when_sending = false; | 113 bool FLAGS_quic_neuter_unencrypted_when_sending = true; |
119 | 114 |
120 // If true, QuicAlarm::Update will call a faster UpdateImpl implementation | 115 // If true, QuicAlarm::Update will call a faster UpdateImpl implementation |
121 // instead of canceling and reregistering the alarm. | 116 // instead of canceling and reregistering the alarm. |
122 bool FLAGS_quic_change_alarms_efficiently = false; | 117 bool FLAGS_quic_change_alarms_efficiently = false; |
123 | 118 |
124 // If true, requires handshake confirmations for all QUIC handshakes with | 119 // If true, requires handshake confirmations for all QUIC handshakes with |
125 // versions less than 33. | 120 // versions less than 33. |
126 bool FLAGS_quic_require_handshake_confirmation_pre33 = false; | 121 bool FLAGS_quic_require_handshake_confirmation_pre33 = false; |
127 | 122 |
128 // If true, use the interval form of iteration over a PacketNumberQueue instead | 123 // If true, use the interval form of iteration over a PacketNumberQueue instead |
129 // of iterating over the individual numbers. | 124 // of iterating over the individual numbers. |
130 bool FLAGS_quic_use_packet_number_queue_intervals = false; | 125 bool FLAGS_quic_use_packet_number_queue_intervals = true; |
131 | 126 |
| 127 // If true, fix a bug with which QuicStreamSequencerBuffer can\'t release block |
| 128 // memory in time. |
132 bool FLAGS_quic_sequencer_buffer_retire_block_in_time = true; | 129 bool FLAGS_quic_sequencer_buffer_retire_block_in_time = true; |
133 | 130 |
134 // Remove obsolete code to force QUIC to go forward secure, now that the server | 131 // Remove obsolete code to force QUIC to go forward secure, now that the server |
135 // immediately goes forward secure. | 132 // immediately goes forward secure. |
136 bool FLAGS_quic_remove_obsolete_forward_secure = false; | 133 bool FLAGS_quic_remove_obsolete_forward_secure = false; |
137 | 134 |
138 // If true, close QUIC connection explicitly on write error due to packet being | 135 // If true, close QUIC connection explicitly on write error due to packet being |
139 // too large. | 136 // too large. |
140 bool FLAGS_quic_close_connection_on_packet_too_large = true; | 137 bool FLAGS_quic_close_connection_on_packet_too_large = true; |
141 | 138 |
142 // Use GetLeastUnacked when updating the packet number length, instead of | 139 // Use GetLeastUnacked when updating the packet number length, instead of |
143 // GetLeastPacketAwaitedByPeer. | 140 // GetLeastPacketAwaitedByPeer. |
144 bool FLAGS_quic_least_unacked_packet_number_length = true; | 141 bool FLAGS_quic_least_unacked_packet_number_length = true; |
145 | 142 |
146 // If true, close the write side of a QUIC spdy stream when all queued bytes | 143 // If true, close the write side of a QUIC spdy stream when all queued bytes |
147 // have been written and a FIN has been sent. | 144 // have been written and a FIN has been sent. |
148 bool FLAGS_quic_close_stream_after_writing_queued_data = false; | 145 bool FLAGS_quic_close_stream_after_writing_queued_data = false; |
149 | 146 |
150 // If true, close connection with QUIC_TOO_MANY_FRAME_GAPS error when number of | 147 // If true, close connection with QUIC_TOO_MANY_FRAME_GAPS error when number of |
151 // gaps in QuicStreamSequenceBuffer exceeds allowed limit. | 148 // gaps in QuicStreamSequenceBuffer exceeds allowed limit. |
152 bool FLAGS_quic_limit_frame_gaps_in_buffer = false; | 149 bool FLAGS_quic_limit_frame_gaps_in_buffer = false; |
153 | 150 |
154 // If true, QuicSentPacketManager will use inline pacing functionality instead | 151 // If true, v33 QUIC client uses 1 bit to specify 8-byte connection id in public |
155 // of wrapping the SendAlgorithm with a PacingSender. | 152 // flag. |
156 bool FLAGS_quic_use_inline_pacing = false; | 153 bool FLAGS_quic_remove_v33_hacks = true; |
| 154 |
| 155 // If true, use the CHLO packet size, not message size when determining how |
| 156 // large a REJ can be. |
| 157 bool FLAGS_quic_use_chlo_packet_size = false; |
| 158 |
| 159 // If true, defer creation of new connection till its CHLO arrives. |
| 160 bool FLAGS_quic_buffer_packet_till_chlo = false; |
| 161 |
| 162 // If true, the connection will check whether it is application-limited, and |
| 163 // notify the congestion controller about it. |
| 164 bool FLAGS_quic_enable_app_limited_check = true; |
OLD | NEW |