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

Make redisEnableKeepAlive a no-op on AF_UNIX connections. #1215

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

michael-grunder
Copy link
Collaborator

This commit turns redisEnableKeepAlive into a no-op for REDIS_CONN_UNIX connections.

I'm not sure there's much benefit by actually breaking the connection (e.g. setting c-.err and c->errstr) for the operation, so instead we just return REDIS_ERR from redisEnableKeepAlive but leave the connection in a good state.

Fixes #1185

@michael-grunder michael-grunder merged commit 869f3d0 into master Aug 19, 2023
17 checks passed
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.

Improvement: More specific error message when calling redisEnableKeepAlive() with unix socket
1 participant