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

Don't reconnect to send pipelined request no-op #983

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

eugeneius
Copy link
Contributor

Fixes #966.

If sending the pipelined get commands fails with a network error, the socket will be closed when we try to send the no-op command. alive? reconnects if possible, but we only need to send the no-op if the get commands were successfully sent.

Before #963, reconnecting to send a no-op was harmless, but now that pipelined requests are tracked in their entirety, an error is raised since there is no request in progress.

If sending the pipelined get commands fails with a network error, the
socket will be closed when we try to send the no-op command. `alive?`
reconnects if possible, but we only need to send the no-op if the get
commands were successfully sent.

Before c01d410, reconnecting to send a
no-op was harmless, but now that pipelined requests are tracked in their
entirety, an error is raised since there is no request in progress.
@petergoldstein
Copy link
Owner

Thanks @eugeneius . Rebased to address some test/rubocop issues. If this runs green I'll merge.

@petergoldstein petergoldstein merged commit fa64119 into petergoldstein:main Jan 28, 2024
21 checks passed
@petergoldstein
Copy link
Owner

Good catch here.

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.

No request in progress
2 participants