-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prepare for Rust 1.50+ by boxing large futures #1003
Merged
Merged
Conversation
This file contains 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
Version 1.50 of the Rust compiler introduced a regression (rust-lang/rust#84873) that results in the compiler using extremely large amounts of memory (and eventually getting OOM killed) when compiling code involving very large nested types. This regression is triggered by a number of future types in the proxy. This branch introduces several `BoxService` layers, primarily around `Switch` layers, to reduce the size of future types, so that the proxy can successfully be compiled on Rust 1.50+. This branch does *not* update the toolchain version. The Rust 1.51 toolchain also introduces some new clippy lints, which trigger on some code patterns that are very common in the current proxy. Therefore, the diff from a compiler update will be much larger than just adding additional boxing. I'll land the compiler update in a separate branch after this merges.
hawkw
commented
May 12, 2021
olix0r
approved these changes
May 12, 2021
olix0r
added a commit
to linkerd/linkerd2
that referenced
this pull request
May 14, 2021
This release adds an `l5d-client-id` header on mutually-authenticated inbound requests so that applications can discover the client's identity. This header is omitted on requests from unauthenticated connections. --- * improve diagnostics for rejected profile discovery (linkerd/linkerd2-proxy#998) * Prepare for Rust 1.50+ by boxing large futures (linkerd/linkerd2-proxy#1003) * http: Remove `identity_from_header` helper (linkerd/linkerd2-proxy#1004) * inbound: Set the l5d-client-id header (linkerd/linkerd2-proxy#981) * chore: update Rust toolchain to 1.52.1 (linkerd/linkerd2-proxy#1005) * tracing: just control ansi colors with feature flags (linkerd/linkerd2-proxy#1006) * ci: Use a matrix of fuzzer targets (linkerd/linkerd2-proxy#1007) * outbound: Box HTTP endpoint stack (linkerd/linkerd2-proxy#1008) * Box all stack modules (linkerd/linkerd2-proxy#1011)
olix0r
added a commit
to linkerd/linkerd2
that referenced
this pull request
May 19, 2021
This release adds an `l5d-client-id` header on mutually-authenticated inbound requests so that applications can discover the client's identity. This header is omitted on requests from unauthenticated connections. --- * improve diagnostics for rejected profile discovery (linkerd/linkerd2-proxy#998) * Prepare for Rust 1.50+ by boxing large futures (linkerd/linkerd2-proxy#1003) * http: Remove `identity_from_header` helper (linkerd/linkerd2-proxy#1004) * inbound: Set the l5d-client-id header (linkerd/linkerd2-proxy#981) * chore: update Rust toolchain to 1.52.1 (linkerd/linkerd2-proxy#1005) * tracing: just control ansi colors with feature flags (linkerd/linkerd2-proxy#1006) * ci: Use a matrix of fuzzer targets (linkerd/linkerd2-proxy#1007) * outbound: Box HTTP endpoint stack (linkerd/linkerd2-proxy#1008) * Box all stack modules (linkerd/linkerd2-proxy#1011)
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.
Version 1.50 of the Rust compiler introduced a regression
(rust-lang/rust#84873) that results in the
compiler using extremely large amounts of memory (and eventually getting
OOM killed) when compiling code involving very large nested types. This
regression is triggered by a number of future types in the proxy.
This branch introduces several
BoxService
layers, primarily aroundSwitch
layers, to reduce the size of future types, so that the proxycan successfully be compiled on Rust 1.50+.
This branch does not update the toolchain version. The Rust 1.51
toolchain also introduces some new clippy lints, which trigger on some
code patterns that are very common in the current proxy. Therefore, the
diff from a compiler update will be much larger than just adding
additional boxing. I'll land the compiler update in a separate branch
after this merges.