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 mike.schore@gmail.com

Loading
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