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

Establish new connection upon retry before marking dead #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ricardosantosalves
Copy link

The get and set implementations have a last retry step before marking a server as dead. The current implementation of retry is re-using the existing socket and only then marking the server dead. In case of stale sockets, for example, if the memcached server is restarted, although it's already up and running, it will still be marked as dead.

The change in this PR makes sure that a new connection is established upon retry, to avoid reusing a stale socket, before marking it as dead.

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.

1 participant