Skip to content
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

Set the downstream addresses early to prevent a logging segfault. #2790

Merged
merged 2 commits into from
Mar 14, 2018
Merged

Set the downstream addresses early to prevent a logging segfault. #2790

merged 2 commits into from
Mar 14, 2018

Conversation

brian-pane
Copy link
Contributor

Description:
Ensure that the local and remote downstream addresses are always set for a new ActiveStream.

Risk Level: Low

Testing: ran the unit and integration tests

Docs Changes: N/A

Release Notes: N/A

Fixes: #2780

Signed-off-by: Brian Pane [email protected]

Copy link
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.

LGTM. Can you add a test? I think you should be able to check this in an access logging test. Thank you!

Signed-off-by: Brian Pane <[email protected]>
Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

My only question is if we think there should be some explicit boolean for "we have not yet done effective client IP calculation" so folks can explicitly tell if it has been done yet.

My inclination is to not worry about it since it will be done before any filter sees the headers.

@alyssawilk
Copy link
Contributor

Assuming Matt agrees since he LGTM'd and there's now tests and given it's a bugfix I'm inclined to merge now and do a follow-up if anyone cares about tracking IP state :-)

@alyssawilk alyssawilk merged commit abe1b24 into envoyproxy:master Mar 14, 2018
htuch added a commit to htuch/envoy that referenced this pull request Mar 14, 2018
Some absl::optional changes missed due to not being merged with envoyproxy#2688.

Signed-off-by: Harvey Tuch <[email protected]>
htuch added a commit that referenced this pull request Mar 14, 2018
Some absl::optional changes missed due to not being merged with #2688.

Signed-off-by: Harvey Tuch <[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