| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // If true, QUIC will measure head of line (HOL) blocking due between | 56 // If true, QUIC will measure head of line (HOL) blocking due between |
| 57 // streams due to packet losses on the headers stream. The | 57 // streams due to packet losses on the headers stream. The |
| 58 // measurements will be surfaced via UMA histogram | 58 // measurements will be surfaced via UMA histogram |
| 59 // Net.QuicSession.HeadersHOLBlockedTime. | 59 // Net.QuicSession.HeadersHOLBlockedTime. |
| 60 bool FLAGS_quic_measure_headers_hol_blocking_time = true; | 60 bool FLAGS_quic_measure_headers_hol_blocking_time = true; |
| 61 | 61 |
| 62 // Disable QUIC's userspace pacing. | 62 // Disable QUIC's userspace pacing. |
| 63 bool FLAGS_quic_disable_pacing = false; | 63 bool FLAGS_quic_disable_pacing = false; |
| 64 | 64 |
| 65 // If true, don't send QUIC packets if the send alarm is set. | |
| 66 bool FLAGS_quic_respect_send_alarm2 = true; | |
| 67 | |
| 68 // If true, Close the connection instead of writing unencrypted stream data. | 65 // If true, Close the connection instead of writing unencrypted stream data. |
| 69 bool FLAGS_quic_never_write_unencrypted_data = true; | 66 bool FLAGS_quic_never_write_unencrypted_data = true; |
| 70 | 67 |
| 71 // If true, reject any incoming QUIC which does not have the FIXD tag. | 68 // If true, reject any incoming QUIC which does not have the FIXD tag. |
| 72 bool FLAGS_quic_require_fix = true; | 69 bool FLAGS_quic_require_fix = true; |
| 73 | 70 |
| 74 // If true, headers stream will support receiving PUSH_PROMISE frames. | 71 // If true, headers stream will support receiving PUSH_PROMISE frames. |
| 75 bool FLAGS_quic_supports_push_promise = false; | 72 bool FLAGS_quic_supports_push_promise = false; |
| 76 | 73 |
| 77 // If true, QUIC will support RFC 7539 variants of ChaCha20 Poly1305. | |
| 78 bool FLAGS_quic_use_rfc7539 = true; | |
| 79 | |
| 80 // When turn on, log packet loss into transport connection stats LossEvent. | 74 // When turn on, log packet loss into transport connection stats LossEvent. |
| 81 bool FLAGS_quic_log_loss_event = true; | 75 bool FLAGS_quic_log_loss_event = true; |
| 82 | 76 |
| 83 // If true, for QUIC authenticated encryption algorithms, last 8 bytes | |
| 84 // of IV comprise packet path id and lower 7 bytes of packet number. | |
| 85 bool FLAGS_quic_include_path_id_in_iv = true; | |
| 86 | |
| 87 // If true, make sure new incoming streams correctly cede to higher | 77 // If true, make sure new incoming streams correctly cede to higher |
| 88 // priority (or batch) streams when doing QUIC writes. | 78 // priority (or batch) streams when doing QUIC writes. |
| 89 bool FLAGS_quic_cede_correctly = true; | 79 bool FLAGS_quic_cede_correctly = true; |
| 90 | 80 |
| 91 // If on, max number of incoming and outgoing streams will be different. | 81 // If on, max number of incoming and outgoing streams will be different. |
| 92 // Incoming will be a little higher than outgoing to tolerate race condition. | 82 // Incoming will be a little higher than outgoing to tolerate race condition. |
| 93 bool FLAGS_quic_different_max_num_open_streams = true; | 83 bool FLAGS_quic_different_max_num_open_streams = true; |
| 94 | 84 |
| 95 // If true, QUIC should correctly report if it supports ChaCha20. Otherwise, | 85 // If true, QUIC should correctly report if it supports ChaCha20. Otherwise, |
| 96 // QUIC will lie and claim that it does not support ChaCha20. The primary use | 86 // QUIC will lie and claim that it does not support ChaCha20. The primary use |
| 97 // case for this is places where ChaCha20 is prohibitively expensive compared to | 87 // case for this is places where ChaCha20 is prohibitively expensive compared to |
| 98 // AES-GCM. | 88 // AES-GCM. |
| 99 bool FLAGS_quic_crypto_server_config_default_has_chacha20 = true; | 89 bool FLAGS_quic_crypto_server_config_default_has_chacha20 = true; |
| 100 | 90 |
| 101 // If true, checking for peer address change is postponed after the packet gets | |
| 102 // decrypted. | |
| 103 bool FLAGS_check_peer_address_change_after_decryption = true; | |
| 104 | |
| 105 // If true, always log the cached network parameters, regardless of whether | 91 // If true, always log the cached network parameters, regardless of whether |
| 106 // bandwidth-resumption has been enabled. | 92 // bandwidth-resumption has been enabled. |
| 107 bool FLAGS_quic_log_received_parameters = true; | 93 bool FLAGS_quic_log_received_parameters = true; |
| 108 | 94 |
| 109 // If true, QUIC will use newly refactored TCP sender code. | 95 // If true, QUIC will use newly refactored TCP sender code. |
| 110 bool FLAGS_quic_use_new_tcp_sender = true; | 96 bool FLAGS_quic_use_new_tcp_sender = true; |
| 111 | 97 |
| 112 // Saves the initial subkey secret in QUIC crypto when deriving keys from the | 98 // Saves the initial subkey secret in QUIC crypto when deriving keys from the |
| 113 // initial premaster secret. | 99 // initial premaster secret. |
| 114 bool FLAGS_quic_save_initial_subkey_secret = true; | 100 bool FLAGS_quic_save_initial_subkey_secret = true; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 126 // If true, calls to QuicAlarm::Cancel don't do anything if the alarm is not | 112 // If true, calls to QuicAlarm::Cancel don't do anything if the alarm is not |
| 127 // set. | 113 // set. |
| 128 bool FLAGS_quic_only_cancel_set_alarms = true; | 114 bool FLAGS_quic_only_cancel_set_alarms = true; |
| 129 | 115 |
| 130 // Simplify QUIC's write path for inplace encryption now that FEC is gone. | 116 // Simplify QUIC's write path for inplace encryption now that FEC is gone. |
| 131 bool FLAGS_quic_inplace_encryption2 = true; | 117 bool FLAGS_quic_inplace_encryption2 = true; |
| 132 | 118 |
| 133 // If true, SpdyFramer will call OnStreamEnd from SpdyFramerVisitorInterface | 119 // If true, SpdyFramer will call OnStreamEnd from SpdyFramerVisitorInterface |
| 134 // instead of empty-data sentinel calls when the stream is to be ended. | 120 // instead of empty-data sentinel calls when the stream is to be ended. |
| 135 bool FLAGS_spdy_on_stream_end = true; | 121 bool FLAGS_spdy_on_stream_end = true; |
| 122 |
| 123 // If true, QuicCryptoServerConfig will use cached compressed certificates |
| 124 // if the uncompressed certs to be compressed hits the cache. |
| 125 bool FLAGS_quic_use_cached_compressed_certs = true; |
| 126 |
| 127 // Enable a connection option allowing connections to time out if more than 5 |
| 128 // consecutive RTOs are sent. |
| 129 bool FLAGS_quic_enable_rto_timeout = true; |
| 130 |
| 131 // Do not limit the max CWND to 200 packets in QUIC. |
| 132 bool FLAGS_quic_dont_limit_max_cwnd = true; |
| 133 |
| 134 // Don't copy QuicAckFrame or QuicStopWaitingFrame into the |
| 135 // QuicPacketGenerator. |
| 136 bool FLAGS_quic_dont_copy_acks = true; |
| 137 |
| 138 // Use a byte conservation approach instead of packet conservation in the |
| 139 // Slow Start Large Reduction experiment. |
| 140 bool FLAGS_quic_sslr_byte_conservation = true; |
| OLD | NEW |