| 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 // 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool FLAGS_quic_enable_autotune_by_default = true; | 74 bool FLAGS_quic_enable_autotune_by_default = true; |
| 75 | 75 |
| 76 // Use largest acked in the most recent ack instead of largest acked ever in | 76 // Use largest acked in the most recent ack instead of largest acked ever in |
| 77 // loss recovery. | 77 // loss recovery. |
| 78 bool FLAGS_quic_loss_recovery_use_largest_acked = true; | 78 bool FLAGS_quic_loss_recovery_use_largest_acked = true; |
| 79 | 79 |
| 80 // Only set one alarm for sending at once, either the send alarm or | 80 // Only set one alarm for sending at once, either the send alarm or |
| 81 // retransmission alarm. Disabled because it breaks QUIC time loss detection. | 81 // retransmission alarm. Disabled because it breaks QUIC time loss detection. |
| 82 bool FLAGS_quic_only_one_sending_alarm = false; | 82 bool FLAGS_quic_only_one_sending_alarm = false; |
| 83 | 83 |
| 84 // If true, the hash of the CHLO message will be used in the proof generated for | |
| 85 // an SCUP message. | |
| 86 bool FLAGS_quic_use_hash_in_scup = true; | |
| 87 | |
| 88 // If true, QUIC public reset packets will have the \"pre-v33\" public header | 84 // If true, QUIC public reset packets will have the \"pre-v33\" public header |
| 89 // flags. | 85 // flags. |
| 90 bool FLAGS_quic_use_old_public_reset_packets = true; | 86 bool FLAGS_quic_use_old_public_reset_packets = true; |
| 91 | 87 |
| 92 // If true, the dispatcher is responsible for generating server designated | |
| 93 // connection IDs. | |
| 94 bool FLAGS_quic_dispatcher_creates_id = true; | |
| 95 | |
| 96 // If true, checks if the CHLO is acceptable as a matter of policy. | 88 // If true, checks if the CHLO is acceptable as a matter of policy. |
| 97 bool FLAGS_quic_enable_chlo_policy = true; | 89 bool FLAGS_quic_enable_chlo_policy = true; |
| 98 | 90 |
| 99 // If true, ignore QUIC data frames of length 0 for flow control. | 91 // If true, ignore QUIC data frames of length 0 for flow control. |
| 100 bool FLAGS_quic_ignore_zero_length_frames = true; | 92 bool FLAGS_quic_ignore_zero_length_frames = true; |
| 101 | 93 |
| 102 // If true, replace ServerHelloNotifier with a check to see if a decrypted | 94 // If true, replace ServerHelloNotifier with a check to see if a decrypted |
| 103 // packet is forward secure. | 95 // packet is forward secure. |
| 104 bool FLAGS_quic_no_shlo_listener = true; | 96 bool FLAGS_quic_no_shlo_listener = true; |
| 105 | 97 |
| 106 // If true, queued retransmission packets, because of write blocked | 98 // If true, queued retransmission packets, because of write blocked |
| 107 // socket, are always sent once the socket gets unblocked | 99 // socket, are always sent once the socket gets unblocked |
| 108 bool FLAGS_quic_always_write_queued_retransmissions = true; | 100 bool FLAGS_quic_always_write_queued_retransmissions = true; |
| 109 | 101 |
| 110 // Adds a RATE connection option to do rate based sending. | 102 // Adds a RATE connection option to do rate based sending. |
| 111 bool FLAGS_quic_rate_based_sending = true; | 103 bool FLAGS_quic_rate_based_sending = true; |
| 112 | 104 |
| 113 // If true, QUIC will use cheap stateless rejects without creating a full | 105 // If true, QUIC will use cheap stateless rejects without creating a full |
| 114 // connection. | 106 // connection. |
| 115 bool FLAGS_quic_use_cheap_stateless_rejects = false; | 107 bool FLAGS_quic_use_cheap_stateless_rejects = false; |
| 116 | 108 |
| 117 // If true, treat timestamps from SO_TIMESTAMPING as QuicWallTimes rather | 109 // If true, treat timestamps from SO_TIMESTAMPING as QuicWallTimes rather |
| 118 // than QuicTimes. | 110 // than QuicTimes. |
| 119 bool FLAGS_quic_socket_walltimestamps = false; | 111 bool FLAGS_quic_socket_walltimestamps = true; |
| 120 | 112 |
| 121 // If true, default to immediate forward secure once established on the | 113 // If true, default to immediate forward secure once established on the |
| 122 // server side, and the IPFS connection option disables this instead of | 114 // server side, and the IPFS connection option disables this instead of |
| 123 // enabling it. | 115 // enabling it. |
| 124 bool FLAGS_quic_default_immediate_forward_secure = true; | 116 bool FLAGS_quic_default_immediate_forward_secure = true; |
| 125 | 117 |
| 126 // If true, disables support for QUIC version 29 and earlier. | 118 // If true, disables support for QUIC version 29 and earlier. |
| 127 bool FLAGS_quic_disable_pre_30 = false; | 119 bool FLAGS_quic_disable_pre_30 = true; |
| 128 | 120 |
| 129 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the | 121 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the |
| 130 // connection. | 122 // connection. |
| 131 bool FLAGS_quic_respect_http2_settings_frame = true; | 123 bool FLAGS_quic_respect_http2_settings_frame = true; |
| 132 | 124 |
| 133 // Do not use a QuicAckListener in order to confirm a larger Path MTU. | 125 // Do not use a QuicAckListener in order to confirm a larger Path MTU. |
| 134 bool FLAGS_quic_no_mtu_discovery_ack_listener = false; | 126 bool FLAGS_quic_no_mtu_discovery_ack_listener = true; |
| 135 | 127 |
| 136 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no | 128 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no |
| 137 // longer necessary. | 129 // longer necessary. |
| 138 bool FLAGS_quic_simple_packet_number_length = false; | 130 bool FLAGS_quic_simple_packet_number_length = true; |
| 139 | 131 |
| 140 // If true, enables QUIC_VERSION_35. | 132 // If true, enables QUIC_VERSION_35. |
| 141 bool FLAGS_quic_enable_version_35 = false; | 133 bool FLAGS_quic_enable_version_35 = true; |
| 142 | 134 |
| 143 // If true, enables QUIC_VERSION_36. | 135 // If true, enables QUIC_VERSION_36. |
| 144 bool FLAGS_quic_enable_version_36 = false; | 136 bool FLAGS_quic_enable_version_36 = false; |
| 145 | 137 |
| 146 // If true, requires support for X509 certificates in QUIC CHLO PDMDs. | 138 // If true, requires support for X509 certificates in QUIC CHLO PDMDs. |
| 147 bool FLAGS_quic_require_x509 = false; | 139 bool FLAGS_quic_require_x509 = false; |
| 148 | 140 |
| 149 // If true, deprecate safeguards for b/26023400. | 141 // If true, deprecate safeguards for b/26023400. |
| 150 bool FLAGS_quic_deprecate_kfixd = false; | 142 bool FLAGS_quic_deprecate_kfixd = false; |
| 151 | 143 |
| 152 // If true, QUIC will refresh the proof for versions 31 and beyond on subsequent | 144 // If true, QUIC will refresh the proof for versions 31 and beyond on subsequent |
| 153 // CHLOs. | 145 // CHLOs. |
| 154 bool FLAGS_quic_refresh_proof = true; | 146 bool FLAGS_quic_refresh_proof = true; |
| 155 | 147 |
| 156 // If true, a connection does not migrate on an old packet even the peer address | 148 // If true, a connection does not migrate on an old packet even the peer address |
| 157 // changes. | 149 // changes. |
| 158 bool FLAGS_quic_do_not_migrate_on_old_packet = true; | 150 bool FLAGS_quic_do_not_migrate_on_old_packet = true; |
| 159 | 151 |
| 160 // If true, use async codepaths to invoke ProofSource::GetProof. | 152 // If true, use async codepaths to invoke ProofSource::GetProof. |
| 161 bool FLAGS_enable_async_get_proof = false; | 153 bool FLAGS_enable_async_get_proof = false; |
| 162 | 154 |
| 163 // If true, neuter null encrypted packets before sending the next handshake | 155 // If true, neuter null encrypted packets before sending the next handshake |
| 164 // message. | 156 // message. |
| 165 bool FLAGS_quic_neuter_unencrypted_when_sending = false; | 157 bool FLAGS_quic_neuter_unencrypted_when_sending = false; |
| 158 |
| 159 // If true, QuicAlarm::Update will call a faster UpdateImpl implementation |
| 160 // instead of canceling and reregistering the alarm. |
| 161 bool FLAGS_quic_change_alarms_efficiently = false; |
| OLD | NEW |