Skip to content
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

h3: Avoid unnecessary work on control streams #1841

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

LPardue
Copy link
Contributor

@LPardue LPardue commented Sep 9, 2024

Previously, quiche's poll() function would attempt to do work on control or
QPACK streams, whether they were readable or not. Since we encourage apps to
call poll() after each read loop, this could result in wasted work.

With this change, we'll return early if the stream is not actually readable.

@LPardue LPardue requested a review from a team as a code owner September 9, 2024 17:43
Previously, quiche's poll() function would attempt to do work on control or
QPACK streams, whether they were readable or not. Since we encourage apps to
call poll() after each read loop, this could result in wasted work.

With this change, we'll return early if the stream is not actually readable.
@ghedo ghedo force-pushed the early-exit-control-stream-processing branch from 44ad21f to cd0adbd Compare September 10, 2024 07:35
@ghedo ghedo merged commit a5fa399 into master Sep 10, 2024
38 checks passed
@ghedo ghedo deleted the early-exit-control-stream-processing branch September 10, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants