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 bool FLAGS_quic_allow_oversized_packets_for_test = false; | 7 bool FLAGS_quic_allow_oversized_packets_for_test = false; |
8 | 8 |
9 // When true, the use time based loss detection instead of nack. | 9 // When true, the use time based loss detection instead of nack. |
10 bool FLAGS_quic_use_time_loss_detection = false; | 10 bool FLAGS_quic_use_time_loss_detection = false; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Process QUIC frames as soon as they're parsed, instead of waiting for the | 52 // Process QUIC frames as soon as they're parsed, instead of waiting for the |
53 // packet's parsing to complete. | 53 // packet's parsing to complete. |
54 bool FLAGS_quic_process_frames_inline = true; | 54 bool FLAGS_quic_process_frames_inline = true; |
55 | 55 |
56 // Estimate that only 60% of QUIC's receive buffer is usable as opposed to 95%. | 56 // Estimate that only 60% of QUIC's receive buffer is usable as opposed to 95%. |
57 bool FLAGS_quic_use_conservative_receive_buffer = true; | 57 bool FLAGS_quic_use_conservative_receive_buffer = true; |
58 | 58 |
59 // Limits QUIC's max CWND to 200 packets. | 59 // Limits QUIC's max CWND to 200 packets. |
60 bool FLAGS_quic_limit_max_cwnd = true; | 60 bool FLAGS_quic_limit_max_cwnd = true; |
61 | 61 |
62 // If true, instead of enforcing a fixed limit of 200 between the last | |
63 // client-created stream ID and the next one, calculate the difference based on | |
64 // get_max_open_streams(). | |
65 bool FLAGS_exact_stream_id_delta = true; | |
66 | |
67 // If true, require handshake confirmation for QUIC connections, functionally | 62 // If true, require handshake confirmation for QUIC connections, functionally |
68 // disabling 0-rtt handshakes. | 63 // disabling 0-rtt handshakes. |
69 // TODO(rtenneti): Enable this flag after fixing tests. | 64 // TODO(rtenneti): Enable this flag after fixing tests. |
70 bool FLAGS_quic_require_handshake_confirmation = false; | 65 bool FLAGS_quic_require_handshake_confirmation = false; |
71 | 66 |
72 // Disables special treatment of truncated acks, since older retransmissions are | 67 // Disables special treatment of truncated acks, since older retransmissions are |
73 // proactively discarded in QUIC. | 68 // proactively discarded in QUIC. |
74 bool FLAGS_quic_disable_truncated_ack_handling = true; | 69 bool FLAGS_quic_disable_truncated_ack_handling = true; |
75 | 70 |
76 // If true, after a server silo receives a packet from a migrated QUIC | 71 // If true, after a server silo receives a packet from a migrated QUIC |
77 // client, a GO_AWAY frame is sent to the client. | 72 // client, a GO_AWAY frame is sent to the client. |
78 bool FLAGS_send_goaway_after_client_migration = true; | 73 bool FLAGS_send_goaway_after_client_migration = true; |
79 | 74 |
80 // Close the connection instead of attempting to write a packet out of sequence | 75 // Close the connection instead of attempting to write a packet out of sequence |
81 // number order. | 76 // number order. |
82 bool FLAGS_quic_close_connection_out_of_order_sending = true; | 77 bool FLAGS_quic_close_connection_out_of_order_sending = true; |
83 | 78 |
84 // Allow QUIC packet writer to limit the MTU of the connection. | 79 // Allow QUIC packet writer to limit the MTU of the connection. |
85 bool FLAGS_quic_limit_mtu_by_writer = true; | 80 bool FLAGS_quic_limit_mtu_by_writer = true; |
| 81 |
| 82 // QUIC-specific flag. If true, Cubic's epoch is reset when the sender is |
| 83 // application-limited. |
| 84 bool FLAGS_reset_cubic_epoch_when_app_limited = true; |
OLD | NEW |