Skip to content

Revert "Revert "Support upstream http filters with tcp tunneling (#27183)" (#32980)" - #32991

Merged
ggreenway merged 8 commits into
envoyproxy:mainfrom
vikaschoudhary16:revert-revert-tcp-proxy
Mar 25, 2024
Merged

ggreenway merged 8 commits into
envoyproxy:mainfrom
vikaschoudhary16:revert-revert-tcp-proxy

Conversation

@vikaschoudhary16

Copy link
Copy Markdown
Contributor

…183)" (#32980)"

This reverts commit 04835af.

Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/runtime-guard-changes: FYI only for changes made to (source/common/runtime/runtime_features.cc).

🐱

Caused by: #32991 was opened by vikaschoudhary16.

see: more, trace.

@vikaschoudhary16
vikaschoudhary16 marked this pull request as draft March 19, 2024 23:26
@vikaschoudhary16
vikaschoudhary16 marked this pull request as ready for review March 20, 2024 07:53

@alyssawilk alyssawilk 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.

/wa

http2ImplementationToString(params.param.http2_implementation),
params.param.defer_processing_backedup_streams ? "WithDeferredProcessing"
: "NoDeferredProcessing",
params.param.use_universal_header_validator ? "Uhv" : "Legacy",

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.

revert?

params.param.deprecate_callback_visitor ? "WithCallbackVisitor"
: "NoCallbackVisitor",
params.param.use_universal_header_validator ? "Uhv" : "Legacy");
params.param.tunneling_with_upstream_filters ? "WithUpstreamHttpFilters"

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.

I think this is the probem. Let's only do this for tests using TCP proxying.

/wait

ip_version, downstream_protocol, upstream_protocol, http1_implementation,
http2_implementation, defer_processing, use_header_validator,
deprecate_callback_visitor});
for (const bool tunneling_with_upstream_filters : {false, true}) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please find a compromise between a reasonable amount of coverage, and doubling the number of permutations of the tests. Recent failures were partially caused by the tests taking too long due to too many permutations.

@vikaschoudhary16

Copy link
Copy Markdown
Contributor Author

thanks @alyssawilk and @ggreenway. will update

Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
Signed-off-by: Vikas Choudhary <[email protected]>
@ggreenway
ggreenway merged commit 6448427 into envoyproxy:main Mar 25, 2024
alyssawilk pushed a commit that referenced this pull request Jun 4, 2024
…34098)

followup to #32991
Commit Message: Implement watermark functions which was a TODO and some cleanup
Signed-off-by: Vikas Choudhary <[email protected]>
yanavlasov added a commit that referenced this pull request Aug 2, 2024
This API was introduced by #32991 and it conflates support for
half-close with TCP proxying mode in H/1 codec. This interferes with
#34461 which enables support for server half-close in H/2 proxying.

This PR refactors API to separate enabling of the half-close behavior
from TCP proxy behavior. Prior to #34461 half-close semativs were only
enabled for TCP proxy upstreams, but #34461 introduces other cases as
well. This necessitates setting half-close and TCP proxy modes
separately. TCP proxy mode is now enabled in the class dedicated to the
TCP proxy upstreams.

---------

Signed-off-by: Yan Avlasov <[email protected]>
martinduke pushed a commit to martinduke/envoy that referenced this pull request Aug 8, 2024
This API was introduced by envoyproxy#32991 and it conflates support for
half-close with TCP proxying mode in H/1 codec. This interferes with
envoyproxy#34461 which enables support for server half-close in H/2 proxying.

This PR refactors API to separate enabling of the half-close behavior
from TCP proxy behavior. Prior to envoyproxy#34461 half-close semativs were only
enabled for TCP proxy upstreams, but envoyproxy#34461 introduces other cases as
well. This necessitates setting half-close and TCP proxy modes
separately. TCP proxy mode is now enabled in the class dedicated to the
TCP proxy upstreams.

---------

Signed-off-by: Yan Avlasov <[email protected]>
Signed-off-by: Martin Duke <[email protected]>
asingh-g pushed a commit to asingh-g/envoy that referenced this pull request Aug 20, 2024
This API was introduced by envoyproxy#32991 and it conflates support for
half-close with TCP proxying mode in H/1 codec. This interferes with
envoyproxy#34461 which enables support for server half-close in H/2 proxying.

This PR refactors API to separate enabling of the half-close behavior
from TCP proxy behavior. Prior to envoyproxy#34461 half-close semativs were only
enabled for TCP proxy upstreams, but envoyproxy#34461 introduces other cases as
well. This necessitates setting half-close and TCP proxy modes
separately. TCP proxy mode is now enabled in the class dedicated to the
TCP proxy upstreams.

---------

Signed-off-by: Yan Avlasov <[email protected]>
Signed-off-by: asingh-g <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants