Repository navigation
http2: deflake RstStreamOverflowOnPendingFlushTimeout - #48791
Merged
RyanTheOptimist merged 2 commits intoNov 2, 2026
Merged
RyanTheOptimist merged 2 commits into
RyanTheOptimist merged 2 commits into
Conversation
The test set stream_idle_timeout to 400ms only to get a 400ms pending flush timer, since stream_flush_timeout defaults to it. The idle timer also covers the pre-fill stream and is reset by decode-side events only, so the pre-fill stream's whole response, 997 DATA frames proxied across threads, had to arrive within 400ms of the request. On a slow runner the idle timeout fired first, leaving its local reply's two frames queued, and the test failed waiting for 998 queued frames with "current value 2". Set stream_flush_timeout to 400ms instead and leave the idle timeout at its default. Delaying the fake upstream's response by 500ms reproduces the CI failure on every codec without this change and passes with it. Signed-off-by: Derek Argueta <[email protected]>
Encoding response headers and data does reset the stream idle timer, so a short stream_idle_timeout fires on the pre-fill stream only when its upstream response is slow to start. Signed-off-by: Derek Argueta <[email protected]>
derekargueta
marked this pull request as ready for review
October 30, 2026 07:38
antoniovleonti
approved these changes
Oct 30, 2026
RyanTheOptimist
approved these changes
Nov 2, 2026
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 12, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
jwendell
pushed a commit
that referenced
this pull request
Nov 12, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
that referenced
this pull request
Nov 17, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
phlax
pushed a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
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.
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout
The test set
stream_idle_timeoutto 400ms only to get a 400ms pending flush timer, sincestream_flush_timeoutdefaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2".This sets
stream_flush_timeoutto 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change.Additional Description:
It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower.
AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening.
Risk Level: Low (test only)
Testing:
bazel test //test/integration:http2_flood_integration_test --runs_per_test=5: pass (macOS arm64, fastbuild)Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A