| 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, it will return as soon as an error is detected while validating | |
| 11 // CHLO. | |
| 12 QUIC_FLAG(bool, FLAGS_use_early_return_when_verifying_chlo, true) | |
| 13 | |
| 14 // 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 |
| 15 // connection options. | 11 // connection options. |
| 16 QUIC_FLAG(bool, FLAGS_quic_allow_bbr, false) | 12 QUIC_FLAG(bool, FLAGS_quic_allow_bbr, false) |
| 17 | 13 |
| 18 // Time period for which a given connection_id should live in the time-wait | 14 // Time period for which a given connection_id should live in the time-wait |
| 19 // state. | 15 // state. |
| 20 QUIC_FLAG(int64_t, FLAGS_quic_time_wait_list_seconds, 200) | 16 QUIC_FLAG(int64_t, FLAGS_quic_time_wait_list_seconds, 200) |
| 21 | 17 |
| 22 // Currently, this number is quite conservative. The max QPS limit for an | 18 // Currently, this number is quite conservative. The max QPS limit for an |
| 23 // individual server silo is currently set to 1000 qps, though the actual max | 19 // individual server silo is currently set to 1000 qps, though the actual max |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 | 45 |
| 50 // If true, QUIC will measure head of line (HOL) blocking due between | 46 // If true, QUIC will measure head of line (HOL) blocking due between |
| 51 // streams due to packet losses on the headers stream. The | 47 // streams due to packet losses on the headers stream. The |
| 52 // measurements will be surfaced via UMA histogram | 48 // measurements will be surfaced via UMA histogram |
| 53 // Net.QuicSession.HeadersHOLBlockedTime. | 49 // Net.QuicSession.HeadersHOLBlockedTime. |
| 54 QUIC_FLAG(bool, FLAGS_quic_measure_headers_hol_blocking_time, true) | 50 QUIC_FLAG(bool, FLAGS_quic_measure_headers_hol_blocking_time, true) |
| 55 | 51 |
| 56 // If true, disable pacing in QUIC. | 52 // If true, disable pacing in QUIC. |
| 57 QUIC_FLAG(bool, FLAGS_quic_disable_pacing_for_perf_tests, false) | 53 QUIC_FLAG(bool, FLAGS_quic_disable_pacing_for_perf_tests, false) |
| 58 | 54 |
| 59 // If true, Close the connection instead of writing unencrypted stream data. | |
| 60 QUIC_FLAG(bool, FLAGS_quic_never_write_unencrypted_data, true) | |
| 61 | |
| 62 // If true, QUIC connections can do bandwidth resumption with an initial window | 55 // If true, QUIC connections can do bandwidth resumption with an initial window |
| 63 // of < 10 packets. | 56 // of < 10 packets. |
| 64 QUIC_FLAG(bool, FLAGS_quic_no_lower_bw_resumption_limit, true) | 57 QUIC_FLAG(bool, FLAGS_quic_no_lower_bw_resumption_limit, true) |
| 65 | 58 |
| 66 // Use largest acked in the most recent ack instead of largest acked ever in | |
| 67 // loss recovery. | |
| 68 QUIC_FLAG(bool, FLAGS_quic_loss_recovery_use_largest_acked, true) | |
| 69 | |
| 70 // Only set one alarm for sending at once, either the send alarm or | |
| 71 // retransmission alarm. Disabled because it breaks QUIC time loss detection. | |
| 72 QUIC_FLAG(bool, FLAGS_quic_only_one_sending_alarm, false) | |
| 73 | |
| 74 // If true, QUIC public reset packets will have the \"pre-v33\" public header | 59 // If true, QUIC public reset packets will have the \"pre-v33\" public header |
| 75 // flags. | 60 // flags. |
| 76 QUIC_FLAG(bool, FLAGS_quic_use_old_public_reset_packets, true) | 61 QUIC_FLAG(bool, FLAGS_quic_use_old_public_reset_packets, true) |
| 77 | 62 |
| 78 // If true, QUIC will use cheap stateless rejects without creating a full | 63 // If true, QUIC will use cheap stateless rejects without creating a full |
| 79 // connection. | 64 // connection. |
| 80 QUIC_FLAG(bool, FLAGS_quic_use_cheap_stateless_rejects, false) | 65 QUIC_FLAG(bool, FLAGS_quic_use_cheap_stateless_rejects, false) |
| 81 | 66 |
| 82 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the | 67 // If true, QUIC respect HTTP2 SETTINGS frame rather than always close the |
| 83 // connection. | 68 // connection. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 121 |
| 137 // If true, the connection will check whether it is application-limited, and | 122 // If true, the connection will check whether it is application-limited, and |
| 138 // notify the congestion controller about it. | 123 // notify the congestion controller about it. |
| 139 QUIC_FLAG(bool, FLAGS_quic_enable_app_limited_check, true) | 124 QUIC_FLAG(bool, FLAGS_quic_enable_app_limited_check, true) |
| 140 | 125 |
| 141 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no | 126 // Deprecate QuicPacketCreator::next_packet_number_length_ because it's no |
| 142 // longer necessary. | 127 // longer necessary. |
| 143 QUIC_FLAG(bool, FLAGS_quic_simple_packet_number_length_2, true) | 128 QUIC_FLAG(bool, FLAGS_quic_simple_packet_number_length_2, true) |
| 144 | 129 |
| 145 // If true, disables QUIC version less than 32. | 130 // If true, disables QUIC version less than 32. |
| 146 QUIC_FLAG(bool, FLAGS_quic_disable_pre_32, false) | 131 QUIC_FLAG(bool, FLAGS_quic_disable_pre_32, true) |
| 147 | 132 |
| 148 // If true, QUIC will enforce the MTU limit for connections that may require a | 133 // If true, QUIC will enforce the MTU limit for connections that may require a |
| 149 // small MTU. | 134 // small MTU. |
| 150 QUIC_FLAG(bool, FLAGS_quic_enforce_mtu_limit, false) | 135 QUIC_FLAG(bool, FLAGS_quic_enforce_mtu_limit, false) |
| 151 | 136 |
| 152 // Disable MTU probing if MTU probe causes ERR_MSG_TOO_BIG instead of aborting | 137 // Disable MTU probing if MTU probe causes ERR_MSG_TOO_BIG instead of aborting |
| 153 // the connection. | 138 // the connection. |
| 154 QUIC_FLAG(bool, FLAGS_graceful_emsgsize_on_mtu_probe, true) | 139 QUIC_FLAG(bool, FLAGS_graceful_emsgsize_on_mtu_probe, true) |
| 155 | 140 |
| 156 // If true, do not force sending ack when connection is closed because of | 141 // If true, do not force sending ack when connection is closed because of |
| 157 // message too long (EMSGSIZE) write error. | 142 // message too long (EMSGSIZE) write error. |
| 158 QUIC_FLAG(bool, FLAGS_quic_do_not_send_ack_on_emsgsize, true) | 143 QUIC_FLAG(bool, FLAGS_quic_do_not_send_ack_on_emsgsize, true) |
| 159 | 144 |
| 160 // If true, postpone multipath flag validation to ProcessValidatedPacket. | 145 // If true, postpone multipath flag validation to ProcessValidatedPacket. |
| 161 QUIC_FLAG(bool, FLAGS_quic_postpone_multipath_flag_validation, true) | 146 QUIC_FLAG(bool, FLAGS_quic_postpone_multipath_flag_validation, true) |
| 162 | 147 |
| 163 // If true, set a QUIC connection's last_sent_for_timeout_ to the send time of | 148 // If true, set a QUIC connection's last_sent_for_timeout_ to the send time of |
| 164 // the first packet sent after receiving a packet, even if the sent packet is | 149 // the first packet sent after receiving a packet, even if the sent packet is |
| 165 // a retransmission | 150 // a retransmission |
| 166 QUIC_FLAG(bool, FLAGS_quic_better_last_send_for_timeout, true) | 151 QUIC_FLAG(bool, FLAGS_quic_better_last_send_for_timeout, true) |
| 167 | 152 |
| 168 // If true, send an explicit TTL in QUIC REJ messages to mitigate client clock | 153 // If true, send an explicit TTL in QUIC REJ messages to mitigate client clock |
| 169 // skew. | 154 // skew. |
| 170 QUIC_FLAG(bool, FLAGS_quic_send_scfg_ttl, true) | 155 QUIC_FLAG(bool, FLAGS_quic_send_scfg_ttl, true) |
| 171 | 156 |
| 172 // If true, only open limited number of quic sessions per epoll event. Leave the | 157 // If true, only open limited number of quic sessions per epoll event. Leave the |
| 173 // rest to next event. This flag can be turned on only if | 158 // rest to next event. This flag can be turned on only if |
| 174 // --quic_buffer_packet_till_chlo is true. | 159 // --quic_buffer_packet_till_chlo is true. |
| 175 QUIC_FLAG(bool, FLAGS_quic_limit_num_new_sessions_per_epoll_loop, true) | 160 QUIC_FLAG(bool, FLAGS_quic_limit_num_new_sessions_per_epoll_loop, false) |
| 161 |
| 162 // If true, disables QUIC version less than 34. |
| 163 QUIC_FLAG(bool, FLAGS_quic_disable_pre_34, false) |
| OLD | NEW |