-
Notifications
You must be signed in to change notification settings - Fork 5.5k
tls: moving the server name into SocketAddressProvider #16574
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
Changes from 4 commits
30a4054
09913e1
9fbb477
c9f9f07
8b500d8
3dc3130
936cd1b
66e34b3
b5f85c3
3a848a1
83ef195
a6fd3d4
bd8376a
41f019a
b2ffa64
09d7233
eb86924
7afbbcc
91f798d
e2b9cb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,6 +284,10 @@ void ActiveTcpListener::resumeListening() { | |
|
|
||
| void ActiveTcpListener::newConnection(Network::ConnectionSocketPtr&& socket, | ||
| std::unique_ptr<StreamInfo::StreamInfo> stream_info) { | ||
| // populate the SNI into stream info, the network filters needn't do that again. | ||
|
soulxu marked this conversation as resolved.
Outdated
|
||
| if (!socket->requestedServerName().empty()) { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can this be done unconditionally? I would expect that calling
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It has a constructor even for empty string https://github.com/envoyproxy/envoy/blob/main/source/common/stream_info/stream_info_impl.h#L237. Or we can move the check inside the
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is functionally the same without this check; setting it to empty is the same as not setting it. Please remove the conditional to simplify the code. Same in
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. got it, let me remove it. |
||
| stream_info->setRequestedServerName(socket->requestedServerName()); | ||
| } | ||
|
|
||
| // Find matching filter chain. | ||
| const auto filter_chain = config_->filterChainManager().findFilterChain(*socket); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.