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 // This file intentionally does not have header guards, it's included | 5 // This file intentionally does not have header guards, it's included |
6 // inside a macro to generate values. | 6 // inside a macro to generate values. |
7 | 7 |
8 // This file contains the list of QUIC protocol flags. | 8 // This file contains the list of QUIC protocol flags. |
9 | 9 |
10 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC | 10 // If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC |
(...skipping 22 matching lines...) Expand all Loading... |
33 QUIC_FLAG(bool, FLAGS_quic_always_log_bugs_for_tests, true) | 33 QUIC_FLAG(bool, FLAGS_quic_always_log_bugs_for_tests, true) |
34 | 34 |
35 // If true, multipath is enabled for the connection. | 35 // If true, multipath is enabled for the connection. |
36 QUIC_FLAG(bool, FLAGS_quic_enable_multipath, false) | 36 QUIC_FLAG(bool, FLAGS_quic_enable_multipath, false) |
37 | 37 |
38 // If true, require handshake confirmation for QUIC connections, functionally | 38 // If true, require handshake confirmation for QUIC connections, functionally |
39 // disabling 0-rtt handshakes. | 39 // disabling 0-rtt handshakes. |
40 // TODO(rtenneti): Enable this flag after CryptoServerTest's are fixed. | 40 // TODO(rtenneti): Enable this flag after CryptoServerTest's are fixed. |
41 QUIC_FLAG(bool, FLAGS_quic_require_handshake_confirmation, false) | 41 QUIC_FLAG(bool, FLAGS_quic_require_handshake_confirmation, false) |
42 | 42 |
43 // If true, QUIC will measure head of line (HOL) blocking due between | |
44 // streams due to packet losses on the headers stream. The | |
45 // measurements will be surfaced via UMA histogram | |
46 // Net.QuicSession.HeadersHOLBlockedTime. | |
47 QUIC_FLAG(bool, FLAGS_quic_measure_headers_hol_blocking_time, true) | |
48 | |
49 // If true, disable pacing in QUIC. | 43 // If true, disable pacing in QUIC. |
50 QUIC_FLAG(bool, FLAGS_quic_disable_pacing_for_perf_tests, false) | 44 QUIC_FLAG(bool, FLAGS_quic_disable_pacing_for_perf_tests, false) |
51 | 45 |
52 // If true, QUIC connections can do bandwidth resumption with an initial window | 46 // If true, QUIC connections can do bandwidth resumption with an initial window |
53 // of < 10 packets. | 47 // of < 10 packets. |
54 QUIC_FLAG(bool, FLAGS_quic_no_lower_bw_resumption_limit, true) | 48 QUIC_FLAG(bool, FLAGS_quic_no_lower_bw_resumption_limit, true) |
55 | 49 |
56 // If true, QUIC public reset packets will have the \"pre-v33\" public header | 50 // If true, QUIC public reset packets will have the \"pre-v33\" public header |
57 // flags. | 51 // flags. |
58 QUIC_FLAG(bool, FLAGS_quic_use_old_public_reset_packets, true) | 52 QUIC_FLAG(bool, FLAGS_quic_use_old_public_reset_packets, true) |
59 | 53 |
60 // If true, QUIC will use cheap stateless rejects without creating a full | 54 // If true, QUIC will use cheap stateless rejects without creating a full |
61 // connection. | 55 // connection. |
62 QUIC_FLAG(bool, FLAGS_quic_use_cheap_stateless_rejects, false) | 56 QUIC_FLAG(bool, FLAGS_quic_use_cheap_stateless_rejects, false) |
63 | 57 |
64 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the | 58 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the |
65 // connection. | 59 // connection. |
66 QUIC_FLAG(bool, FLAGS_quic_respect_http2_settings_frame, true) | 60 QUIC_FLAG(bool, FLAGS_quic_respect_http2_settings_frame, true) |
67 | 61 |
68 // If true, enables QUIC_VERSION_35. | 62 // If true, enables QUIC_VERSION_35. |
69 QUIC_FLAG(bool, FLAGS_quic_enable_version_35, true) | 63 QUIC_FLAG(bool, FLAGS_quic_enable_version_35, true) |
70 | 64 |
71 // If true, re-enables QUIC_VERSION_36. | 65 // If true, re-enables QUIC_VERSION_36. |
72 QUIC_FLAG(bool, FLAGS_quic_enable_version_36, true) | |
73 | |
74 // If true, enables QUIC_VERSION_36. | |
75 QUIC_FLAG(bool, FLAGS_quic_enable_version_36_v2, true) | 66 QUIC_FLAG(bool, FLAGS_quic_enable_version_36_v2, true) |
76 | 67 |
77 // If true, use async codepaths to invoke ProofSource::GetProof. | 68 // If true, use async codepaths to invoke ProofSource::GetProof. |
78 QUIC_FLAG(bool, FLAGS_enable_async_get_proof, false) | 69 QUIC_FLAG(bool, FLAGS_enable_async_get_proof, false) |
79 | 70 |
80 // If true, QuicAlarm::Update will call a faster UpdateImpl implementation | |
81 // instead of canceling and reregistering the alarm. | |
82 QUIC_FLAG(bool, FLAGS_quic_change_alarms_efficiently, true) | |
83 | |
84 // If true, requires handshake confirmations for all QUIC handshakes with | 71 // If true, requires handshake confirmations for all QUIC handshakes with |
85 // versions less than 33. | 72 // versions less than 33. |
86 QUIC_FLAG(bool, FLAGS_quic_require_handshake_confirmation_pre33, false) | 73 QUIC_FLAG(bool, FLAGS_quic_require_handshake_confirmation_pre33, false) |
87 | 74 |
88 // If true, fix a bug with which QuicStreamSequencerBuffer can\'t release block | |
89 // memory in time. | |
90 QUIC_FLAG(bool, FLAGS_quic_sequencer_buffer_retire_block_in_time, true) | |
91 | |
92 // Remove obsolete code to force QUIC to go forward secure, now that the server | |
93 // immediately goes forward secure. | |
94 QUIC_FLAG(bool, FLAGS_quic_remove_obsolete_forward_secure, true) | |
95 | |
96 // If true, close QUIC connection explicitly on write error due to packet being | 75 // If true, close QUIC connection explicitly on write error due to packet being |
97 // too large. | 76 // too large. |
98 QUIC_FLAG(bool, FLAGS_quic_close_connection_on_packet_too_large, true) | 77 QUIC_FLAG(bool, FLAGS_quic_close_connection_on_packet_too_large, true) |
99 | 78 |
100 // If true, close the write side of a QUIC spdy stream when all queued bytes | |
101 // have been written and a FIN has been sent. | |
102 QUIC_FLAG(bool, FLAGS_quic_close_stream_after_writing_queued_data, true) | |
103 | |
104 // If true, close connection with QUIC_TOO_MANY_FRAME_GAPS error when number of | |
105 // gaps in QuicStreamSequenceBuffer exceeds allowed limit. | |
106 QUIC_FLAG(bool, FLAGS_quic_limit_frame_gaps_in_buffer, true) | |
107 | |
108 // If true, v33 QUIC client uses 1 bit to specify 8-byte connection id in public | 79 // If true, v33 QUIC client uses 1 bit to specify 8-byte connection id in public |
109 // flag. | 80 // flag. |
110 QUIC_FLAG(bool, FLAGS_quic_remove_v33_hacks, true) | 81 QUIC_FLAG(bool, FLAGS_quic_remove_v33_hacks, true) |
111 | 82 |
112 // If true, use the CHLO packet size, not message size when determining how | 83 // If true, use the CHLO packet size, not message size when determining how |
113 // large a REJ can be. | 84 // large a REJ can be. |
114 QUIC_FLAG(bool, FLAGS_quic_use_chlo_packet_size, true) | 85 QUIC_FLAG(bool, FLAGS_quic_use_chlo_packet_size, true) |
115 | 86 |
116 // If true, defer creation of new connection till its CHLO arrives. | 87 // If true, defer creation of new connection till its CHLO arrives. |
117 QUIC_FLAG(bool, FLAGS_quic_buffer_packet_till_chlo, true) | 88 QUIC_FLAG(bool, FLAGS_quic_buffer_packet_till_chlo, true) |
118 | 89 |
119 // If true, the connection will check whether it is application-limited, and | |
120 // notify the congestion controller about it. | |
121 QUIC_FLAG(bool, FLAGS_quic_enable_app_limited_check, true) | |
122 | |
123 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no | 90 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no |
124 // longer necessary. | 91 // longer necessary. |
125 QUIC_FLAG(bool, FLAGS_quic_simple_packet_number_length_2, true) | 92 QUIC_FLAG(bool, FLAGS_quic_simple_packet_number_length_2, true) |
126 | 93 |
127 // If true, disables QUIC version less than 32. | 94 // If true, disables QUIC version less than 32. |
128 QUIC_FLAG(bool, FLAGS_quic_disable_pre_32, true) | 95 QUIC_FLAG(bool, FLAGS_quic_disable_pre_32, true) |
129 | 96 |
130 // If true, QUIC will enforce the MTU limit for connections that may require a | 97 // If true, QUIC will enforce the MTU limit for connections that may require a |
131 // small MTU. | 98 // small MTU. |
132 QUIC_FLAG(bool, FLAGS_quic_enforce_mtu_limit, false) | 99 QUIC_FLAG(bool, FLAGS_quic_enforce_mtu_limit, false) |
(...skipping 26 matching lines...) Expand all Loading... |
159 // If true, lazy allocate and early release memeory used in | 126 // If true, lazy allocate and early release memeory used in |
160 // QuicStreamSequencerBuffer to buffer incoming data. | 127 // QuicStreamSequencerBuffer to buffer incoming data. |
161 QUIC_FLAG(bool, FLAGS_quic_reduce_sequencer_buffer_memory_life_time, true) | 128 QUIC_FLAG(bool, FLAGS_quic_reduce_sequencer_buffer_memory_life_time, true) |
162 | 129 |
163 // If true, allow server address change if it is because of mapped ipv4 address. | 130 // If true, allow server address change if it is because of mapped ipv4 address. |
164 QUIC_FLAG(bool, FLAGS_quic_allow_server_address_change_for_mapped_ipv4, true) | 131 QUIC_FLAG(bool, FLAGS_quic_allow_server_address_change_for_mapped_ipv4, true) |
165 | 132 |
166 // If true, disables QUIC version less than 34. | 133 // If true, disables QUIC version less than 34. |
167 QUIC_FLAG(bool, FLAGS_quic_disable_pre_34, false) | 134 QUIC_FLAG(bool, FLAGS_quic_disable_pre_34, false) |
168 | 135 |
| 136 // When true, decode the packet number from the largest received packet, rather |
| 137 // than the most recent. |
| 138 QUIC_FLAG(bool, FLAGS_quic_packet_numbers_largest_received, true) |
OLD | NEW |