-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Add max_sessions_per_event_loop to quic protocol options. #41371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Ting Pan <panting@google.com>
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to |
Signed-off-by: Ting Pan <panting@google.com>
/assign @RyanTheOptimist
|
Signed-off-by: Ting Pan <panting@google.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
initialize(); | ||
const uint32_t max_sessions_per_event_loop_for_test = | ||
ActiveQuicListener::kNumSessionsToCreatePerLoop; | ||
EXPECT_EQ(max_sessions_per_event_loop_for_test, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Just inline ActiveQuicListener::kNumSessionsToCreatePerLoop directly into the EXPECT_EQ.
// During hot restart, an optional handler for packets that weren't for existing connections. | ||
OptRef<Network::NonDispatchedUdpPacketHandler> non_dispatched_udp_packet_handler_; | ||
Network::IoHandle::UdpSaveCmsgConfig udp_save_cmsg_config_; | ||
uint32_t max_sessions_per_event_loop_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: brief comment (particularly if there are any special semantics attached to particular values)
Commit Message: Add a new quic configuration field, 'max_sessions_per_event_loop', to QuicProtocolOptions in Envoy listener.
Additional Description: This change allows tuning the maximum number of new QUIC sessions created within a single event loop. The default value is 16, preserving the previous hardcoded limit.
Risk Level: low
Testing: unit tests
Docs Changes:
Release Notes: Add max_sessions_per_event_loop to quic protocol options.
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]