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

credentials: don't overwrite ServerName in given config #756

Merged
merged 1 commit into from
Jul 14, 2016

Conversation

heyitsanthony
Copy link
Contributor

The first endpoint will set the ServerName which will then be used by
the second endpoint, causing the transport to reject the second endpoint
since the server cert won't match the server name.

@xiang90
Copy link
Contributor

xiang90 commented Jul 14, 2016

@menghanl @iamqizhao Can you take a look? We want to get this merged soon. This blocks etcd release, blocks kubernetes + etcd3 integration.

@@ -151,14 +151,16 @@ func (c *tlsCreds) ClientHandshake(addr string, rawConn net.Conn, timeout time.D
errChannel <- timeoutError{}
})
}
// use local cfg to avoid clobbering ServerName if multiple endpoints
Copy link
Contributor

Choose a reason for hiding this comment

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

seems the comment is not complete? can you complete the sentence?

@iamqizhao
Copy link
Contributor

LGTM when the comment is fixed.

@heyitsanthony
Copy link
Contributor Author

@iamqizhao OK, fixed the comment

The first endpoint will set the ServerName which will then be used by
the second endpoint, causing the transport to reject the second endpoint
since the server cert won't match the server name.
@iamqizhao iamqizhao merged commit 02fca89 into grpc:master Jul 14, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants