Repository navigation
Conversation
hoyosjs
requested review from
BrennanConroy,
SamMonoRT and
halter73
as code owners
November 4, 2026 09:58
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The test has a race where WINDOW_UPDATE can be processed before the first StartTimingWrite(), skipping a callback and causing secondWriteBlocked to time out even with the fix.
1 open issue
What changed in this PR
Fixes Kestrel’s HTTP/2 response-write timing bookkeeping so repeated writes after a flow-control wait do not suppress MinResponseDataRate timeouts, addressing #70297.
Changes:
- Clears
IsTimingWriteafter stopping write timing. - Adds regression coverage for resumed writes followed by another flow-control stall and timeout.
| File | Description |
|---|---|
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http2/Http2TimeoutTests.cs |
Adds a regression test for timeout enforcement after flow control resumes. |
src/Servers/Kestrel/Core/src/Internal/Http2/Http2FrameWriter.cs |
Resets the timing flag to prevent repeated timing-counter decrements. |
Review effort: Balanced
| withFlags: (byte)Http2DataFrameFlags.NONE, | ||
| withStreamId: 1); | ||
|
|
||
| await SendWindowUpdateAsync(1, 100); |
Member
|
/review |
This was referenced Nov 6, 2026
Contributor
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fix HTTP/2 response write timing after flow-control waits
Reset HTTP/2 write timing after flow-control waits.
Description
Clear IsTimingWrite after StopTimingWrite() so subsequent writes cannot decrement the counter again and suppress MinResponseDataRate timeouts.
Adds a regression test for resumed writes followed by another flow-control stall. It fails before the fix and passes afterward. All 24 HTTP/2 timeout tests pass.
Fixes #70297