-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
QUIC server: Spawn for each stream #26086
Conversation
31d7043
to
b9e2a4a
Compare
b9e2a4a
to
0c468a5
Compare
bench results:
master:
|
Do you think usage of
|
let stats = stats.clone(); | ||
let packet_sender = packet_sender.clone(); | ||
let last_update = last_update.clone(); | ||
tokio::spawn(async move { |
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.
The concern probably is we may spawn too many async tasks into the runtime in the server side compared with before. But I think that might be addressed by tweaking the maximum streams allowed for each connection if we find issues.
(cherry picked from commit 2cc48a6)
(cherry picked from commit 2cc48a6) Co-authored-by: sakridge <[email protected]>
Problem
awaiting streams in order can produce head of line blocking when streams come in out of order
Summary of Changes
spawn for each stream
Fixes #26031