blob: fe97495da5ca4ff54670b3deeeb330619babded3 [file] [log] [blame]
[email protected]9bb57c72014-03-31 20:36:041// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/quic/quic_flags.h"
6
[email protected]9bb57c72014-03-31 20:36:047bool FLAGS_quic_allow_oversized_packets_for_test = false;
[email protected]6d9ca3b2014-05-13 07:44:228
[email protected]c5cc9bd2014-03-31 23:17:149// When true, the use time based loss detection instead of nack.
10bool FLAGS_quic_use_time_loss_detection = false;
[email protected]6d9ca3b2014-05-13 07:44:2211
[email protected]19886aaf2014-06-19 23:03:1812// If true, it will return as soon as an error is detected while validating
13// CHLO.
14bool FLAGS_use_early_return_when_verifying_chlo = true;
15
[email protected]cc1aa272014-06-30 19:48:2216// If true, QUIC connections will support FEC protection of data while sending
17// packets, to reduce latency of data delivery to the application. The client
18// must also request FEC protection for the server to use FEC.
19bool FLAGS_enable_quic_fec = false;
[email protected]9693157b2014-08-08 11:13:4920
[email protected]672631c2014-08-16 06:11:4521// When true, defaults to BBR congestion control instead of Cubic.
22bool FLAGS_quic_use_bbr_congestion_control = false;
rtenneti31e9fd62014-09-16 05:22:1523
rtenneti08b014382014-10-29 14:03:1924// If true, QUIC BBR congestion control may be enabled via Finch and/or via QUIC
25// connection options.
26bool FLAGS_quic_allow_bbr = false;
rtenneti23186682014-10-30 01:49:3327
rtennetif4bdb542015-01-21 14:33:0528// Time period for which a given connection_id should live in the time-wait
29// state.
rtenneti581b6ae82015-07-20 20:48:0130int64 FLAGS_quic_time_wait_list_seconds = 200;
rtennetif4bdb542015-01-21 14:33:0531
32// Currently, this number is quite conservative. The max QPS limit for an
33// individual server silo is currently set to 1000 qps, though the actual max
rtenneti581b6ae82015-07-20 20:48:0134// that we see in the wild is closer to 450 qps. Regardless, this means that
35// the longest time-wait list we should see is 200 seconds * 1000 qps = 200000.
36// Of course, there are usually many queries per QUIC connection, so we allow a
37// factor of 3 leeway.
rtennetif4bdb542015-01-21 14:33:0538//
39// Maximum number of connections on the time-wait list. A negative value implies
40// no configured limit.
rtenneti581b6ae82015-07-20 20:48:0141int64 FLAGS_quic_time_wait_list_max_connections = 600000;
rtennetif4bdb542015-01-21 14:33:0542
rtennetie0ee6eb2015-05-01 00:55:0943// Enables server-side support for QUIC stateless rejects.
rtenneti1ab11fb2015-07-01 17:29:5444bool FLAGS_enable_quic_stateless_reject_support = true;
rtennetia2ea9162015-05-15 19:26:4445
rtennetid39bd762015-06-12 01:05:5246// If true, flow controller may grow the receive window size if necessary.
47bool FLAGS_quic_auto_tune_receive_window = true;
48
rtenneti581b6ae82015-07-20 20:48:0149// Limits QUIC's max CWND to 200 packets.
50bool FLAGS_quic_limit_max_cwnd = true;
rtenneti852d6fb42015-07-24 23:09:2251
rtenneti44f4a2e2015-08-07 14:00:0752// If true, require handshake confirmation for QUIC connections, functionally
53// disabling 0-rtt handshakes.
rtenneti5ca6eee2015-10-15 21:54:3054// TODO(rtenneti): Enable this flag after CryptoServerTest's are fixed.
rtenneti44f4a2e2015-08-07 14:00:0755bool FLAGS_quic_require_handshake_confirmation = false;
rtenneti9bd5d4b2015-08-21 05:44:5256
rtenneti48f371c682015-08-27 05:34:2657// If true, after a server silo receives a packet from a migrated QUIC
58// client, a GO_AWAY frame is sent to the client.
59bool FLAGS_send_goaway_after_client_migration = true;
rtennetia8fb60cb2015-09-10 18:17:5760
rtenneti33106d1c2015-09-16 16:53:2461// QUIC-specific flag. If true, Cubic's epoch is reset when the sender is
62// application-limited.
63bool FLAGS_reset_cubic_epoch_when_app_limited = true;
rtenneti4efd55dd2015-09-18 01:12:0464
65// If true, use an interval set as the internal representation of a packet queue
66// instead of a set.
67bool FLAGS_quic_packet_queue_use_interval_set = true;
rtenneti159828f2015-10-13 06:58:0968
69// If true, Cubic's epoch is shifted when the sender is application-limited.
70bool FLAGS_shift_quic_cubic_epoch_when_app_limited = true;
71
72// If true, accounts for available (implicitly opened) streams under a separate
73// quota from open streams, which is 10 times larger.
74bool FLAGS_allow_many_available_streams = true;
rtenneti5ca6eee2015-10-15 21:54:3075
76// If true, QuicPacketReader::ReadAndDispatchPackets will only return true if
77// recvmmsg fills all of the passed in messages. Otherwise, it will return true
78// if recvmmsg read any messages.
79bool FLAGS_quic_read_packets_full_recvmmsg = true;
ckrasic99850b32015-10-16 21:15:5880
81// If true, QUIC will measure head of line (HOL) blocking due between
82// streams due to packet losses on the headers stream. The
83// measurements will be surfaced via UMA histogram
84// Net.QuicSession.HeadersHOLBlockedTime.
85bool FLAGS_quic_measure_headers_hol_blocking_time = true;
rtenneti8a4a0732015-10-18 00:45:5186
87// If true, skip a check for mismatched stream IDs inside
88// ReliableQuicStream::OnStreamFrame.
89bool FLAGS_quic_stop_checking_for_mismatch_ids = true;
rtenneti71133202015-10-19 20:24:0190
91// Disable QUIC's userspace pacing.
92bool FLAGS_quic_disable_pacing = false;
rtenneti1535e3a2015-10-20 06:14:2093
94// If true, a FIN received on a stream with read_side_closed_ true will be
95// recorded correctly.
96bool FLAGS_quic_fix_fin_accounting = true;
97
98// If true, ReliableQuicStream::StopReading (formerly CloseReadSide) causes
99// incoming data to be ignored but the read side of the stream object is not
100// closed.
101bool FLAGS_quic_implement_stop_reading = true;
rtenneti8dd12b22015-10-21 01:26:38102
103// Invoke the QuicAckListener directly, instead of going through the AckNotifier
104// and AckNotifierManager.
105bool FLAGS_quic_no_ack_notifier = true;
ckrasicea295fe2015-10-31 05:03:27106
107// If true, QuicSession::GetNumOpenStreams will count unfinished
108// streams as open streams, QuicSession::PostProcessAfterData will not
109// check the quota of unifinished streams.
110bool FLAGS_quic_count_unfinished_as_open_streams = true;
111
112// If true, use the unrolled prefetch path in QuicPacketCreator::CopyToBuffer.
113bool FLAGS_quic_packet_creator_prefetch = false;