Skip to content

router: make StreamInfo non-const in a couple of cases#18625

Merged
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
goaway:ms/mutable-streaminfo
Oct 14, 2021
Merged

router: make StreamInfo non-const in a couple of cases#18625
mattklein123 merged 1 commit intoenvoyproxy:mainfrom
goaway:ms/mutable-streaminfo

Conversation

@goaway
Copy link
Copy Markdown
Contributor

@goaway goaway commented Oct 14, 2021

Commit Message: router: make StreamInfo non-const in a couple of cases
Additional Description: Envoy Mobile stashes additional request state in StreamInfo FilterState, and requires mutable access to it for the lifetime of the request, including across retries. Making StreamInfo non-const in UpstreamRequest and RetryOptionPredicate affords that access without const_cast hacks.
Risk Level: Low
Testing: Built locally & CI

Signed-off-by: Mike Schore [email protected]

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks!

@mattklein123 mattklein123 merged commit a5b3af2 into envoyproxy:main Oct 14, 2021
goaway added a commit to envoyproxy/envoy-mobile that referenced this pull request Oct 14, 2021
Description: pulls in envoyproxy/envoy#18625

Signed-off-by: Mike Schore <[email protected]>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Description: pulls in #18625

Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: JP Simard <[email protected]>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Description: pulls in #18625

Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: JP Simard <[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.

2 participants