Skip to content

Stops Recovery When Client Closes #77

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

Merged
merged 1 commit into from
Jul 23, 2015
Merged

Stops Recovery When Client Closes #77

merged 1 commit into from
Jul 23, 2015

Conversation

dhakimTRX
Copy link
Contributor

Adds a boolean flag, manuallyClosed to keep track of whether or not the
AutoRecoveringConnection has been told to close by the application.

If flag is set before recovery attempt, autorecovery fails out.
If flag is set mid recovery attempt, creates the new
connection, then immediately aborts it.

Comments, whitespace match with approved style.

Did not address issue of recoverConnection returning boolean, could not see way to do so without introducing race condition or requiring larger scope of changes.

Did not modify double checked locking in recoverConnection, am not sure of policies in this library for what public methods are allowed to block.

Adds a boolean flag, manuallyClosed to keep track of whether or not the
AutoRecoveringConnection has been told to close by the application.

If flag is set before recovery attempt, autorecovery fails out.
If flag is set mid recovery attempt, creates the new
connection, then immediately aborts it.
@michaelklishin
Copy link
Contributor

Thank you!

@michaelklishin
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants