Repository navigation
test/ext_proc: Deflake the HTTP/1 streamed response body tests - #49232
Merged
Merged
Conversation
phlax
requested review from
mattklein123,
tyxia,
yanavlasov and
yanjunxiang-google
as code owners
November 13, 2026 10:46
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the test-only updates that handle streamed response bodies through end-of-stream.
No open issues 🎉
What changed in this PR
Stabilizes ext_proc’s HTTP/1 streamed-response integration tests when body data and end-of-stream arrive in separate processor messages. No production code changes.
Changes:
- Adds a helper that processes body messages through end-of-stream, replacing the first chunk and clearing later chunks.
- Updates both response content-length removal tests to use the helper instead of expecting a single body message.
| File | Description |
|---|---|
test/extensions/filters/http/ext_proc/ext_proc_integration_test.cc |
Uses the helper in both affected tests. |
test/extensions/filters/http/ext_proc/ext_proc_integration_common.h |
Declares the helper and documents HTTP/1 message timing. |
test/extensions/filters/http/ext_proc/ext_proc_integration_common.cc |
Implements the body-processing loop with a fatal-failure exit. |
Review effort: Balanced
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
… the HTTP/1 tests RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Signed-off-by: Ryan Northey <[email protected]>
phlax
force-pushed
the
deflake-ext-proc-h1-streamed-body
branch
from
November 13, 2026 11:09
4d188e4 to
3642cf5
Compare
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
ravenblackx
approved these changes
Nov 13, 2026
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 16, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. (cherry picked from commit 5c63bb1) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. (cherry picked from commit 5c63bb1) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 17, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. (cherry picked from commit 5c63bb1) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. (cherry picked from commit 5c63bb1) Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 18, 2026
…proxy#49232) RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream and STREAMED response body mode, and expected the processor to see the whole body in one message with end_of_stream set. The HTTP/1 codec delivers a response body as data without end of stream followed by an empty end-of-stream frame. When both reach the filter while it waits for the response headers reply they are sent as one message; when the body arrives after that reply, the processor gets the body, then a separate empty end-of-stream message. The test then failed with end_of_stream false, timed out waiting for the downstream end of stream and crashed in teardown (seen on main in the gcc and openssl jobs). Answer body messages until end of stream instead, replacing the first chunk and emptying any later one. Backport note: picked from the pull request ahead of its merge to main. The lambda in `processStreamedResponseBodyAs()` is formatted as this branch's clang-format wants it. The header keeps this branch's `absl::optional` declaration. (cherry picked from commit 5c63bb1) 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.
RemoveResponseContentLengthandRemoveResponseContentLengthAfterBodyProcessinguse an HTTP/1 upstream with STREAMED response body mode, and expected the processor to get the whole body in one message withend_of_streamset.The HTTP/1 codec delivers a response body as data without end of stream, then an empty end-of-stream frame. If both reach the filter while it is waiting for the response headers reply, they go out as one message. If the body arrives after that reply, the processor gets the body and then a separate empty end-of-stream message. The test then fails on
end_of_stream, times out waiting for the downstream end of stream and crashes in teardown. The other STREAMED response tests use the fixture's HTTP/2 upstream, where the end of stream comes in the same DATA frame.Answer body messages until end of stream, replacing the first chunk and emptying any later ones.
Seen on main in the gcc and openssl jobs (e.g. postsubmit 8ce942c, gcc:
ext_proc_integration_test.cc:1235: Failure, then a segmentation fault).Testing:
*RemoveResponseContentLength*, 300 runs per shard (2400 test runs), on RBE:Risk Level: low (test only)