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

Add option to disable making CLIENT SETINFO command on initialization #622

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

rahulgkatre
Copy link
Contributor

This pull request addresses #620 and adds a DisableClientSetInfo constant to be used for the ClientSetInfo field of ClientOption.

When this constant is used, the CLIENT SETINFO command and relevant paths are skipped during new connection initialization, in order to be compatible with older versions of Redis (<7.2) that do not have the CLIENT SETINFO command.

  • Add DisableClientSetInfo path and test

Add DisableClientSetInfo path and test

Co-authored-by: Rahul Katre <[email protected]>
pipe.go Outdated Show resolved Hide resolved
pipe_test.go Show resolved Hide resolved
@rahulgkatre
Copy link
Contributor Author

Is there a way I can create a release of this change to use in my project?

@rueian
Copy link
Collaborator

rueian commented Aug 30, 2024

Is there a way I can create a release of this change to use in my project?

I can tag a new alpha version tomorrow.

@reagankan
Copy link

Hello @rueian, have you had a chance to create an alpha version? We need to consume this ASAP, preferably today or monday/tuesday Sept 2,3. Thanks in advance.

@rueian rueian merged commit 31e0c98 into redis:main Aug 30, 2024
19 checks passed
@rueian
Copy link
Collaborator

rueian commented Aug 30, 2024

Hi @rahulgkatre, @reagankan,

I have tagged the v1.0.46-alpha.1. You can change your go.mod to that.

I would also like to know why you need this. I thought the CLIENT SETINFO should be in a fire-and-forget manner and should not block you.

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.

3 participants