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

fix(cluster): handle connection errors by reconnection #762

Merged
merged 1 commit into from
Dec 16, 2018

Conversation

luin
Copy link
Collaborator

@luin luin commented Dec 12, 2018

Closes #753.

Previously, exceptions caused by DNS resolving will not trigger any reconnections and fail silently. That makes errors much harder to be handled. This fix catches these exceptions and triggers a reconnection to keep the same behaviors as v3.

@luin luin requested a review from AVVS December 12, 2018 16:38
@luin luin merged commit 21138af into master Dec 16, 2018
@luin luin deleted the fix/exception-when-connecting branch December 16, 2018 14:30
ioredis-robot pushed a commit that referenced this pull request Dec 16, 2018
## [4.3.1](v4.3.0...v4.3.1) (2018-12-16)

### Bug Fixes

* **cluster:** handle connection errors by reconnection ([#762](#762)) ([21138af](21138af)), closes [#753](#753)
@ioredis-robot
Copy link
Collaborator

🎉 This PR is included in version 4.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

janus-dev87 added a commit to janus-dev87/ioredis-work that referenced this pull request Mar 1, 2024
## [4.3.1](redis/ioredis@v4.3.0...v4.3.1) (2018-12-16)

### Bug Fixes

* **cluster:** handle connection errors by reconnection ([#762](redis/ioredis#762)) ([21138af](redis/ioredis@21138af)), closes [#753](redis/ioredis#753)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify cluster connection behaviour and error handling
2 participants