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

client: update state earlier to prevent resetTransport calls from killing good transports #2862

Merged
merged 2 commits into from
Jun 10, 2019

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Jun 10, 2019

No description provided.

@@ -736,6 +736,7 @@ func (ac *addrConn) connect() error {
return nil
}
ac.mu.Unlock()
ac.updateConnectivityState(connectivity.Connecting)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add some comment so we don't delete it again later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. And we want the update before unlocking, not after.

@dfawley dfawley merged commit a1d4c28 into grpc:master Jun 10, 2019
@dfawley dfawley deleted the csc branch June 10, 2019 23:59
@lock lock bot locked as resolved and limited conversation to collaborators Dec 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants