This CL reorders the fields of one or multiple types (classes/structs) to group the hot fields together to increase data density. This CL doesn’t change functionality but expects to reduce cache misses and save GCUs.
This CL is generated by the clang field reordering tool based on the field hotness collected by data type profile. Please check go/field-reordering-orc for details.
---
Should you find this CL disrupts an already optimized class/struct layout, please inform us by replying to this CL for a manual review with either the following options: (1) opt-out this optimization as the class/struct layout has been completely optimized; (2) Minor change by collocating <field1>, <field2>, … together in <type> because we know they are accessed together.
LSC doc: go/field-reordering-lsc
EDIT_CATEGORY: CATEGORY_TYPE_FIELD_REORDERING
FULLY_QUALIFIED_TYPE_NAME: quic::QuicSession,quic::QuicServerSessionBase,quic::QuicSpdySession
#gwp-cl-impact
Tested:
TAP for global presubmit queue
http://test/OCL:789382926:BASE:789954846:1754094319348:fab03a04
PiperOrigin-RevId: 793806623
diff --git a/quiche/quic/core/http/quic_server_session_base.cc b/quiche/quic/core/http/quic_server_session_base.cc
index e7fc445..18dda1c 100644
--- a/quiche/quic/core/http/quic_server_session_base.cc
+++ b/quiche/quic/core/http/quic_server_session_base.cc
@@ -36,12 +36,12 @@
QuicPriorityType priority_type)
: QuicSpdySession(connection, visitor, config, supported_versions,
priority_type),
- crypto_config_(crypto_config),
- compressed_certs_cache_(compressed_certs_cache),
- helper_(helper),
bandwidth_resumption_enabled_(false),
+ compressed_certs_cache_(compressed_certs_cache),
bandwidth_estimate_sent_to_client_(QuicBandwidth::Zero()),
- last_scup_time_(QuicTime::Zero()) {}
+ crypto_config_(crypto_config),
+ last_scup_time_(QuicTime::Zero()),
+ helper_(helper) {}
QuicServerSessionBase::~QuicServerSessionBase() {}
diff --git a/quiche/quic/core/http/quic_server_session_base.h b/quiche/quic/core/http/quic_server_session_base.h
index c38c615..9e68890 100644
--- a/quiche/quic/core/http/quic_server_session_base.h
+++ b/quiche/quic/core/http/quic_server_session_base.h
@@ -111,35 +111,35 @@
// data.
void SendSettingsToCryptoStream();
- const QuicCryptoServerConfig* crypto_config_;
+ std::unique_ptr<QuicCryptoServerStreamBase> crypto_stream_;
+
+ // Whether bandwidth resumption is enabled for this connection.
+ bool bandwidth_resumption_enabled_;
// The cache which contains most recently compressed certs.
// Owned by QuicDispatcher.
QuicCompressedCertsCache* compressed_certs_cache_;
- std::unique_ptr<QuicCryptoServerStreamBase> crypto_stream_;
+ // The most recent bandwidth estimate sent to the client.
+ QuicBandwidth bandwidth_estimate_sent_to_client_;
+
+ const QuicCryptoServerConfig* crypto_config_;
+
+ // Time at which we send the last SCUP to the client.
+ QuicTime last_scup_time_;
// Pointer to the helper used to create crypto server streams. Must outlive
// streams created via CreateQuicCryptoServerStream.
QuicCryptoServerStreamBase::Helper* helper_;
- // Whether bandwidth resumption is enabled for this connection.
- bool bandwidth_resumption_enabled_;
-
- // The most recent bandwidth estimate sent to the client.
- QuicBandwidth bandwidth_estimate_sent_to_client_;
+ // Number of packets sent to the peer, at the time we last sent a SCUP.
+ QuicPacketNumber last_scup_packet_number_;
// Text describing server location. Sent to the client as part of the
// bandwidth estimate in the source-address token. Optional, can be left
// empty.
std::string serving_region_;
- // Time at which we send the last SCUP to the client.
- QuicTime last_scup_time_;
-
- // Number of packets sent to the peer, at the time we last sent a SCUP.
- QuicPacketNumber last_scup_packet_number_;
-
// Converts QuicBandwidth to an int32 bytes/second that can be
// stored in CachedNetworkParameters. TODO(jokulik): This function
// should go away once we fix http://b//27897982
diff --git a/quiche/quic/core/http/quic_spdy_session.cc b/quiche/quic/core/http/quic_spdy_session.cc
index 91f8175..54c896e 100644
--- a/quiche/quic/core/http/quic_spdy_session.cc
+++ b/quiche/quic/core/http/quic_spdy_session.cc
@@ -542,28 +542,28 @@
kHttp3StaticUnidirectionalStreamCount)
: 0u,
std::make_unique<DatagramObserver>(this), priority_type),
- send_control_stream_(nullptr),
- receive_control_stream_(nullptr),
- qpack_encoder_receive_stream_(nullptr),
- qpack_decoder_receive_stream_(nullptr),
- qpack_encoder_send_stream_(nullptr),
- qpack_decoder_send_stream_(nullptr),
+ fin_(false),
+ allow_extended_connect_(perspective() == Perspective::IS_SERVER &&
+ VersionUsesHttp3(transport_version())),
+ force_buffer_requests_until_settings_(false),
+ destruction_indicator_(123456789),
+ stream_id_(
+ QuicUtils::GetInvalidStreamId(connection->transport_version())),
+ debug_visitor_(nullptr),
+ frame_len_(0),
qpack_maximum_dynamic_table_capacity_(
GetDefaultQpackMaximumDynamicTableCapacity(perspective())),
qpack_maximum_blocked_streams_(kDefaultMaximumBlockedStreams),
+ receive_control_stream_(nullptr),
max_inbound_header_list_size_(kDefaultMaxUncompressedHeaderSize),
+ send_control_stream_(nullptr),
+ qpack_decoder_receive_stream_(nullptr),
+ qpack_encoder_receive_stream_(nullptr),
+ qpack_encoder_send_stream_(nullptr),
max_outbound_header_list_size_(std::numeric_limits<size_t>::max()),
- stream_id_(
- QuicUtils::GetInvalidStreamId(connection->transport_version())),
- frame_len_(0),
- fin_(false),
- spdy_framer_(SpdyFramer::ENABLE_COMPRESSION),
spdy_framer_visitor_(new SpdyFramerVisitor(this)),
- debug_visitor_(nullptr),
- destruction_indicator_(123456789),
- allow_extended_connect_(perspective() == Perspective::IS_SERVER &&
- VersionUsesHttp3(transport_version())),
- force_buffer_requests_until_settings_(false) {
+ qpack_decoder_send_stream_(nullptr),
+ spdy_framer_(SpdyFramer::ENABLE_COMPRESSION) {
h2_deframer_.set_visitor(spdy_framer_visitor_.get());
h2_deframer_.set_debug_visitor(spdy_framer_visitor_.get());
spdy_framer_.set_debug_visitor(spdy_framer_visitor_.get());
diff --git a/quiche/quic/core/http/quic_spdy_session.h b/quiche/quic/core/http/quic_spdy_session.h
index e303c4d..9ebbc43 100644
--- a/quiche/quic/core/http/quic_spdy_session.h
+++ b/quiche/quic/core/http/quic_spdy_session.h
@@ -632,26 +632,42 @@
bool ValidateWebTransportSettingsConsistency();
- HuffmanEncoding huffman_encoding_ = HuffmanEncoding::kEnabled;
- CookieCrumbling cookie_crumbling_ = CookieCrumbling::kEnabled;
- std::unique_ptr<QpackEncoder> qpack_encoder_;
std::unique_ptr<QpackDecoder> qpack_decoder_;
+ http2::Http2DecoderAdapter h2_deframer_;
+ bool fin_;
+ // Whether the SETTINGS frame has been received on the control stream.
+ bool settings_received_ = false;
+
+ // Whether both this endpoint and our peer support HTTP datagrams and which
+ // draft is in use for this session.
+ HttpDatagramSupport http_datagram_support_ = HttpDatagramSupport::kNone;
+
+ // On the server side, if true, advertise and accept extended CONNECT method.
+ // On the client side, true if the peer advertised extended CONNECT.
+ bool allow_extended_connect_;
+ // Allows forcing ShouldBufferRequestsUntilSettings() to true via
+ // a connection option.
+ bool force_buffer_requests_until_settings_;
+
+ // WebTransport protocol versions supported by the peer.
+ WebTransportHttp3VersionSet peer_web_transport_versions_;
+ CookieCrumbling cookie_crumbling_ = CookieCrumbling::kEnabled;
+ // An integer used for live check. The indicator is assigned a value in
+ // constructor. As long as it is not the assigned value, that would indicate
+ // an use-after-free.
+ int32_t destruction_indicator_;
+ HuffmanEncoding huffman_encoding_ = HuffmanEncoding::kEnabled;
+
+ // Data about the stream whose headers are being processed.
+ QuicStreamId stream_id_;
// Pointer to the header stream in stream_map_.
QuicHeadersStream* headers_stream_;
- // HTTP/3 control streams. They are owned by QuicSession inside
- // stream map, and can be accessed by those unowned pointers below.
- QuicSendControlStream* send_control_stream_;
- QuicReceiveControlStream* receive_control_stream_;
+ // Not owned by the session.
+ Http3DebugVisitor* debug_visitor_;
- // Pointers to HTTP/3 QPACK streams in stream map.
- QpackReceiveStream* qpack_encoder_receive_stream_;
- QpackReceiveStream* qpack_decoder_receive_stream_;
- QpackSendStream* qpack_encoder_send_stream_;
- QpackSendStream* qpack_decoder_send_stream_;
-
- SettingsFrame settings_;
+ size_t frame_len_;
// Maximum dynamic table capacity as defined at
// https://quicwg.org/base-drafts/draft-ietf-quic-qpack.html#maximum-dynamic-table-capacity
@@ -667,68 +683,56 @@
// for the decoding context. Value will be sent via
// SETTINGS_QPACK_BLOCKED_STREAMS.
uint64_t qpack_maximum_blocked_streams_;
-
+ QuicReceiveControlStream* receive_control_stream_;
// The maximum size of a header block that will be accepted from the peer,
// defined per spec as key + value + overhead per field (uncompressed).
// Value will be sent via SETTINGS_MAX_HEADER_LIST_SIZE.
size_t max_inbound_header_list_size_;
+ // HTTP/3 control streams. They are owned by QuicSession inside
+ // stream map, and can be accessed by those unowned pointers below.
+ QuicSendControlStream* send_control_stream_;
+ std::unique_ptr<QpackEncoder> qpack_encoder_;
+ QpackReceiveStream* qpack_decoder_receive_stream_;
+
+ // Pointers to HTTP/3 QPACK streams in stream map.
+ QpackReceiveStream* qpack_encoder_receive_stream_;
+
+ QpackSendStream* qpack_encoder_send_stream_;
+
// The maximum size of a header block that can be sent to the peer. This field
// is informed and set by the peer via SETTINGS frame.
// TODO(b/148616439): Honor this field when sending headers.
size_t max_outbound_header_list_size_;
- // Data about the stream whose headers are being processed.
- QuicStreamId stream_id_;
- size_t frame_len_;
- bool fin_;
-
- spdy::SpdyFramer spdy_framer_;
- http2::Http2DecoderAdapter h2_deframer_;
std::unique_ptr<SpdyFramerVisitor> spdy_framer_visitor_;
+ QpackSendStream* qpack_decoder_send_stream_;
- // Not owned by the session.
- Http3DebugVisitor* debug_visitor_;
-
- // Priority values received in PRIORITY_UPDATE frames for streams that are not
- // open yet.
- absl::flat_hash_map<QuicStreamId, HttpStreamPriority>
- buffered_stream_priorities_;
-
- // An integer used for live check. The indicator is assigned a value in
- // constructor. As long as it is not the assigned value, that would indicate
- // an use-after-free.
- int32_t destruction_indicator_;
-
- // The identifier in the most recently received GOAWAY frame. Unset if no
- // GOAWAY frame has been received yet.
- std::optional<uint64_t> last_received_http3_goaway_id_;
// The identifier in the most recently sent GOAWAY frame. Unset if no GOAWAY
// frame has been sent yet.
std::optional<uint64_t> last_sent_http3_goaway_id_;
- // Whether both this endpoint and our peer support HTTP datagrams and which
- // draft is in use for this session.
- HttpDatagramSupport http_datagram_support_ = HttpDatagramSupport::kNone;
-
- // WebTransport protocol versions supported by the peer.
- WebTransportHttp3VersionSet peer_web_transport_versions_;
-
- // Whether the SETTINGS frame has been received on the control stream.
- bool settings_received_ = false;
-
- // If ShouldBufferRequestsUntilSettings() is true, all streams that are
- // blocked by that are tracked here.
- absl::flat_hash_set<QuicStreamId> streams_waiting_for_settings_;
+ // The identifier in the most recently received GOAWAY frame. Unset if no
+ // GOAWAY frame has been received yet.
+ std::optional<uint64_t> last_received_http3_goaway_id_;
// WebTransport streams that do not have a session associated with them.
// Limited to kMaxUnassociatedWebTransportStreams; when the list is full,
// oldest streams are evicated first.
std::list<BufferedWebTransportStream> buffered_streams_;
- // On the server side, if true, advertise and accept extended CONNECT method.
- // On the client side, true if the peer advertised extended CONNECT.
- bool allow_extended_connect_;
+ spdy::SpdyFramer spdy_framer_;
+
+ // Priority values received in PRIORITY_UPDATE frames for streams that are not
+ // open yet.
+ absl::flat_hash_map<QuicStreamId, HttpStreamPriority>
+ buffered_stream_priorities_;
+
+ SettingsFrame settings_;
+
+ // If ShouldBufferRequestsUntilSettings() is true, all streams that are
+ // blocked by that are tracked here.
+ absl::flat_hash_set<QuicStreamId> streams_waiting_for_settings_;
// Since WebTransport is versioned by renumbering
// SETTINGS_WEBTRANSPORT_MAX_SESSIONS, the max sessions value depends on the
@@ -736,10 +740,6 @@
// server cannot initiate WebTransport sessions.
absl::flat_hash_map<WebTransportHttp3Version, QuicStreamCount>
max_webtransport_sessions_;
-
- // Allows forcing ShouldBufferRequestsUntilSettings() to true via
- // a connection option.
- bool force_buffer_requests_until_settings_;
};
} // namespace quic
diff --git a/quiche/quic/core/quic_session.cc b/quiche/quic/core/quic_session.cc
index e3e5e70..9137d3f 100644
--- a/quiche/quic/core/quic_session.cc
+++ b/quiche/quic/core/quic_session.cc
@@ -117,47 +117,47 @@
QuicStreamCount num_expected_unidirectional_static_streams,
std::unique_ptr<QuicDatagramQueue::Observer> datagram_observer,
QuicPriorityType priority_type)
- : connection_(connection),
+ : num_draining_streams_(0),
+ connection_(connection),
perspective_(connection->perspective()),
- visitor_(owner),
write_blocked_streams_(CreateWriteBlockedList(priority_type)),
- config_(config),
- stream_id_manager_(perspective(), connection->transport_version(),
- kDefaultMaxStreamsPerConnection,
- config_.GetMaxBidirectionalStreamsToSend()),
- ietf_streamid_manager_(perspective(), connection->version(), this, 0,
- num_expected_unidirectional_static_streams,
- config_.GetMaxBidirectionalStreamsToSend(),
- config_.GetMaxUnidirectionalStreamsToSend() +
- num_expected_unidirectional_static_streams),
- num_draining_streams_(0),
- num_outgoing_draining_streams_(0),
- num_static_streams_(0),
num_zombie_streams_(0),
+ num_static_streams_(0),
flow_controller_(
this, QuicUtils::GetInvalidStreamId(connection->transport_version()),
/*is_connection_flow_controller*/ true,
connection->version().AllowsLowFlowControlLimits()
? 0
: kMinimumFlowControlSendWindow,
- config_.GetInitialSessionFlowControlWindowToSend(),
+ config.GetInitialSessionFlowControlWindowToSend(),
kSessionReceiveWindowLimit, perspective() == Perspective::IS_SERVER,
nullptr),
- currently_writing_stream_id_(0),
- transport_goaway_sent_(false),
- transport_goaway_received_(false),
control_frame_manager_(this),
- last_message_id_(0),
datagram_queue_(this, std::move(datagram_observer)),
- closed_streams_clean_up_alarm_(nullptr),
- supported_versions_(supported_versions),
is_configured_(false),
was_zero_rtt_rejected_(false),
+ priority_type_(priority_type),
+ transport_goaway_sent_(false),
+ transport_goaway_received_(false),
liveness_testing_in_progress_(false),
+ last_message_id_(0),
+ currently_writing_stream_id_(0),
+ num_outgoing_draining_streams_(0),
+ closed_streams_clean_up_alarm_(nullptr),
+ visitor_(owner),
stream_count_reset_alarm_(
absl::WrapUnique<QuicAlarm>(connection->alarm_factory()->CreateAlarm(
new StreamCountResetAlarmDelegate(this)))),
- priority_type_(priority_type) {
+ supported_versions_(supported_versions),
+ stream_id_manager_(perspective(), connection->transport_version(),
+ kDefaultMaxStreamsPerConnection,
+ config.GetMaxBidirectionalStreamsToSend()),
+ ietf_streamid_manager_(perspective(), connection->version(), this, 0,
+ num_expected_unidirectional_static_streams,
+ config.GetMaxBidirectionalStreamsToSend(),
+ config.GetMaxUnidirectionalStreamsToSend() +
+ num_expected_unidirectional_static_streams),
+ config_(config) {
closed_streams_clean_up_alarm_ =
absl::WrapUnique<QuicAlarm>(connection_->alarm_factory()->CreateAlarm(
new ClosedStreamsCleanUpDelegate(this)));
diff --git a/quiche/quic/core/quic_session.h b/quiche/quic/core/quic_session.h
index a4bd1fb..290d75a 100644
--- a/quiche/quic/core/quic_session.h
+++ b/quiche/quic/core/quic_session.h
@@ -999,10 +999,9 @@
void PerformActionOnNonStaticStreams(
quiche::UnretainedCallback<bool(QuicStream*)> action);
- // Keep track of highest received byte offset of locally closed streams, while
- // waiting for a definitive final highest offset from the peer.
- absl::flat_hash_map<QuicStreamId, QuicStreamOffset>
- locally_closed_streams_highest_offset_;
+ // A counter for streams which have sent and received FIN but waiting for
+ // application to consume data.
+ size_t num_draining_streams_;
QuicConnection* connection_;
@@ -1010,24 +1009,119 @@
// during our destructor when connection_ may have already been destroyed.
Perspective perspective_;
- // May be null.
- Visitor* visitor_;
-
// A list of streams which need to write more data. Stream register
// themselves in their constructor, and unregisterm themselves in their
- // destructors, so the write blocked list must outlive all streams.
+ // destructors, so the write blocked list must outlive all streams. Don't
+ // reorder write_blocked_streams_ after stream_map_ for the correct
+ // destruction order.
std::unique_ptr<QuicWriteBlockedListInterface> write_blocked_streams_;
- ClosedStreams closed_streams_;
-
- QuicConfig config_;
-
// Map from StreamId to pointers to streams. Owns the streams.
StreamMap stream_map_;
+ // A counter for streams which have done reading and writing, but are waiting
+ // for acks.
+ size_t num_zombie_streams_;
+
+ // A counter for static streams which are in stream_map_.
+ size_t num_static_streams_;
+
+ // TODO(fayang): switch to linked_hash_set when chromium supports it. The bool
+ // is not used here.
+ // List of streams with pending retransmissions.
+ quiche::QuicheLinkedHashMap<QuicStreamId, bool>
+ streams_with_pending_retransmission_;
+
+ // Used for connection-level flow control.
+ QuicFlowController flow_controller_;
+
+ QuicControlFrameManager control_frame_manager_;
+
+ // The buffer used to queue the DATAGRAM frames.
+ QuicDatagramQueue datagram_queue_;
+
+ // Initialized to false. Set to true when the session has been properly
+ // configured and is ready for general operation.
+ bool is_configured_;
+
+ // Whether the session has received a 0-RTT rejection (QUIC+TLS only).
+ bool was_zero_rtt_rejected_;
+
+ QuicPriorityType priority_type_;
+
+ const bool enable_stop_sending_for_zombie_streams_ =
+ GetQuicReloadableFlag(quic_deliver_stop_sending_to_zombie_streams);
+
+ // Whether a transport layer GOAWAY frame has been sent.
+ // Such a frame only exists in Google QUIC, therefore |transport_goaway_sent_|
+ // is always false when using IETF QUIC.
+ bool transport_goaway_sent_;
+ const bool notify_stream_soon_to_destroy_ =
+ GetQuicReloadableFlag(quic_notify_stream_soon_to_destroy);
+
+ // Whether a transport layer GOAWAY frame has been received.
+ // Such a frame only exists in Google QUIC, therefore
+ // |transport_goaway_received_| is always false when using IETF QUIC.
+ bool transport_goaway_received_;
+
+ // This indicates a liveness testing is in progress, and push back the
+ // creation of new outgoing bidirectional streams.
+ bool liveness_testing_in_progress_;
+
+ // Default to max stream count so that there is no stream creation limit per
+ // event loop.
+ QuicStreamCount max_streams_accepted_per_loop_ = kMaxQuicStreamCount;
+
+ // The counter for newly created non-static incoming streams in the current
+ // event loop and gets reset for each event loop.
+ QuicStreamCount new_incoming_streams_in_current_loop_ = 0u;
+
+ // Id of latest successfully sent message.
+ QuicMessageId last_message_id_;
+
+ // The stream id which was last popped in OnCanWrite, or 0, if not under the
+ // call stack of OnCanWrite.
+ QuicStreamId currently_writing_stream_id_;
+
+ // A counter for self initiated streams which have sent and received FIN but
+ // waiting for application to consume data.
+ size_t num_outgoing_draining_streams_;
+
+ std::optional<ConnectionCloseSource> connection_close_source_;
+
+ // Clean up closed_streams_ when this alarm fires.
+ std::unique_ptr<QuicAlarm> closed_streams_clean_up_alarm_;
+
+ // May be null.
+ Visitor* visitor_;
+
+ // Total number of datagram frames declared lost within the session.
+ uint64_t total_datagrams_lost_ = 0;
+
+ std::unique_ptr<QuicAlarm> stream_count_reset_alarm_;
+
+ // Only non-empty on the client after receiving a version negotiation packet,
+ // contains the configured versions from the original session before version
+ // negotiation was received.
+ ParsedQuicVersionVector client_original_supported_versions_;
+
+ ClosedStreams closed_streams_;
+
+ // Supported version list used by the crypto handshake only. Please note, this
+ // list may be a superset of the connection framer's supported versions.
+ ParsedQuicVersionVector supported_versions_;
+
+ std::optional<std::string> user_agent_id_;
+
+ // Keep track of highest received byte offset of locally closed streams, while
+ // waiting for a definitive final highest offset from the peer.
+ absl::flat_hash_map<QuicStreamId, QuicStreamOffset>
+ locally_closed_streams_highest_offset_;
// Map from StreamId to PendingStreams for peer-created unidirectional streams
// which are waiting for the first byte of payload to arrive.
PendingStreamMap pending_stream_map_;
+ // Received information for a connection close.
+ QuicConnectionCloseFrame on_closed_frame_;
// TODO(fayang): Consider moving LegacyQuicStreamIdManager into
// UberQuicStreamIdManager.
@@ -1037,99 +1131,7 @@
// Manages stream IDs for version99/IETF QUIC
UberQuicStreamIdManager ietf_streamid_manager_;
- // A counter for streams which have sent and received FIN but waiting for
- // application to consume data.
- size_t num_draining_streams_;
-
- // A counter for self initiated streams which have sent and received FIN but
- // waiting for application to consume data.
- size_t num_outgoing_draining_streams_;
-
- // A counter for static streams which are in stream_map_.
- size_t num_static_streams_;
-
- // A counter for streams which have done reading and writing, but are waiting
- // for acks.
- size_t num_zombie_streams_;
-
- // Received information for a connection close.
- QuicConnectionCloseFrame on_closed_frame_;
- std::optional<ConnectionCloseSource> connection_close_source_;
-
- // Used for connection-level flow control.
- QuicFlowController flow_controller_;
-
- // The stream id which was last popped in OnCanWrite, or 0, if not under the
- // call stack of OnCanWrite.
- QuicStreamId currently_writing_stream_id_;
-
- // Whether a transport layer GOAWAY frame has been sent.
- // Such a frame only exists in Google QUIC, therefore |transport_goaway_sent_|
- // is always false when using IETF QUIC.
- bool transport_goaway_sent_;
-
- // Whether a transport layer GOAWAY frame has been received.
- // Such a frame only exists in Google QUIC, therefore
- // |transport_goaway_received_| is always false when using IETF QUIC.
- bool transport_goaway_received_;
-
- QuicControlFrameManager control_frame_manager_;
-
- // Id of latest successfully sent message.
- QuicMessageId last_message_id_;
-
- // The buffer used to queue the DATAGRAM frames.
- QuicDatagramQueue datagram_queue_;
-
- // Total number of datagram frames declared lost within the session.
- uint64_t total_datagrams_lost_ = 0;
-
- // TODO(fayang): switch to linked_hash_set when chromium supports it. The bool
- // is not used here.
- // List of streams with pending retransmissions.
- quiche::QuicheLinkedHashMap<QuicStreamId, bool>
- streams_with_pending_retransmission_;
-
- // Clean up closed_streams_ when this alarm fires.
- std::unique_ptr<QuicAlarm> closed_streams_clean_up_alarm_;
-
- // Supported version list used by the crypto handshake only. Please note, this
- // list may be a superset of the connection framer's supported versions.
- ParsedQuicVersionVector supported_versions_;
-
- // Only non-empty on the client after receiving a version negotiation packet,
- // contains the configured versions from the original session before version
- // negotiation was received.
- ParsedQuicVersionVector client_original_supported_versions_;
-
- std::optional<std::string> user_agent_id_;
-
- // Initialized to false. Set to true when the session has been properly
- // configured and is ready for general operation.
- bool is_configured_;
-
- // Whether the session has received a 0-RTT rejection (QUIC+TLS only).
- bool was_zero_rtt_rejected_;
-
- // This indicates a liveness testing is in progress, and push back the
- // creation of new outgoing bidirectional streams.
- bool liveness_testing_in_progress_;
-
- // The counter for newly created non-static incoming streams in the current
- // event loop and gets reset for each event loop.
- QuicStreamCount new_incoming_streams_in_current_loop_ = 0u;
- // Default to max stream count so that there is no stream creation limit per
- // event loop.
- QuicStreamCount max_streams_accepted_per_loop_ = kMaxQuicStreamCount;
- std::unique_ptr<QuicAlarm> stream_count_reset_alarm_;
-
- QuicPriorityType priority_type_;
-
- const bool enable_stop_sending_for_zombie_streams_ =
- GetQuicReloadableFlag(quic_deliver_stop_sending_to_zombie_streams);
-
- const bool notify_stream_soon_to_destroy_ =
- GetQuicReloadableFlag(quic_notify_stream_soon_to_destroy);
+ QuicConfig config_;
};
} // namespace quic