Skip to content

QuicWtSession: refresh stale stream window before waiting on write callback - #660

Open
afrind wants to merge 1 commit into
meta:mainfrom
afrind:wt-refresh-stale-fc
Open

afrind wants to merge 1 commit into
meta:mainfrom
afrind:wt-refresh-stale-fc

Conversation

@afrind

@afrind afrind commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

When a stream used up its cached send window, the write loop registered a pending-write callback and waited, even if the peer's MAX_STREAM_DATA had already raised the QUIC window. That cost an extra event loop iteration before the rest of the data went out. The loop now re-queries the window first and only defers to notifyPendingWriteOnStream if the stream is still blocked.

…llback

When a stream used up its cached send window, the write loop registered a
pending-write callback and waited, even if the peer's MAX_STREAM_DATA had
already raised the QUIC window. That cost an extra event loop iteration
before the rest of the data went out. The loop now re-queries the window
first and only defers to notifyPendingWriteOnStream if the stream is still
blocked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@afrind
afrind requested a review from hanidamlaj November 2, 2026 18:32
@meta-cla meta-cla Bot added the CLA Signed label Nov 2, 2026
@hanidamlaj

Copy link
Copy Markdown
Contributor

lgtm!! I'm working on a stack of diffs that changes/adds a new QuicSocket::writeChain that returns the flow control available which would achieve this as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants