Skip to content

test/ext_proc: Deflake the HTTP/1 streamed response body tests - #49232

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:deflake-ext-proc-h1-streamed-body
Nov 13, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:deflake-ext-proc-h1-streamed-body

Conversation

@phlax

@phlax phlax commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

RemoveResponseContentLength and RemoveResponseContentLengthAfterBodyProcessing use an HTTP/1 upstream with STREAMED response body mode, and expected the processor to get 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, 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:

config runs failed
main (8ce942c) gcc 2400 1035
main (8ce942c) opt 2400 0
this change gcc 2400 0
this change opt 2400 0

Risk Level: low (test only)

@phlax phlax changed the title test/ext_proc: Answer streamed response bodies until end of stream in… test/ext_proc: Deflake the HTTP/1 streamed response body tests Nov 13, 2026
@phlax
phlax requested a balanced review from Copilot November 13, 2026 10:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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
phlax force-pushed the deflake-ext-proc-h1-streamed-body branch from 4d188e4 to 3642cf5 Compare November 13, 2026 11:09
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]>
@phlax phlax added the backport/review Request to backport to stable releases label Nov 13, 2026
@phlax
phlax merged commit 5c63bb1 into envoyproxy:main Nov 13, 2026
25 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/review Request to backport to stable releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants