Skip to content

feat: recover addIdleConn may occur panic #2445

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 3 commits into from
Aug 5, 2025

Conversation

monkey92t
Copy link
Collaborator

When the user defines the Dialer function, we should use recover to capture the panic that addIdleConn may generate.

@ndyakov ndyakov self-requested a review August 5, 2025 12:19
Copy link
Member

@ndyakov ndyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monkey92t this is a great idea, will include this once the build is green.

@ndyakov ndyakov merged commit 6a48d3f into redis:master Aug 5, 2025
20 checks passed
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
* feat: recover addIdleConn may occur panic

Signed-off-by: monkey92t <[email protected]>

* fix test race

Signed-off-by: monkey92t <[email protected]>

---------

Signed-off-by: monkey92t <[email protected]>
Co-authored-by: Nedyalko Dyakov <[email protected]>
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.

3 participants