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: fix race in connecting that leads to broken connection state #2208

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

lyuxuan
Copy link
Contributor

@lyuxuan lyuxuan commented Jul 9, 2018

fix #2203

When connect timeout (preface not received within 20s) happens under waitForHandShake case, the transport should not go to ready stage when actually the transport has been closed already.

@lyuxuan lyuxuan requested a review from menghanl July 10, 2018 01:02
@lyuxuan lyuxuan changed the title createTransport: minor fix createTransport: fix bug for waitForHandshake case Jul 10, 2018
@lyuxuan lyuxuan changed the title createTransport: fix bug for waitForHandshake case createTransport: timeout under waitForHandshake case should not have transport transferred to ready stage Jul 10, 2018
@lyuxuan lyuxuan merged commit c491b25 into grpc:master Jul 10, 2018
@dfawley dfawley added this to the 1.14 Release milestone Jul 12, 2018
@dfawley dfawley changed the title createTransport: timeout under waitForHandshake case should not have transport transferred to ready stage client: fix race in connecting that leads to broken connection state Jul 12, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 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.

WaitForHandshake: correct break statement?
3 participants