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

sendMessage closing race fix #263

Merged

Conversation

sgmiller
Copy link
Contributor

Fix the handling of a race where the connection is closed between the isClosing test at the top of sendMessageWithFlags, and a subsequently ignored test in sendProcessMessage.

We were encountering this rarely in our CI runs where for some reason the LDAP server drops the connection just after Dial but in the middle of our first GetUserBindDN call. The message fails to send but the sendMessage returns nil, then message receiving stalls reading from the responses channel for a message that will never arrive.

… isClosing test at the top of sendMessageWithFlags, and a subsequently ignored test in sendProcessMessage
@stefanmcshane
Copy link
Contributor

Merged and tagged v3.1.9 - Thanks for contributing!

@sgmiller
Copy link
Contributor Author

sgmiller commented May 6, 2020 via email

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.

None yet

2 participants