Skip to content

Conversation

@fabianfett
Copy link
Member

Cherry pick: https://gitlab.com/swift-server-community/RediStack/-/merge_requests/187

Redis connections should not send a QUIT command before closing

Note: Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates TIME_WAIT lingering sockets on the server side.

From Redis docs

…T command

Cherry pick: https://gitlab.com/swift-server-community/RediStack/-/merge_requests/187

> Note: Clients should not use this command. Instead, clients should simply close the connection when they're not used anymore. Terminating a connection on the client side is preferable, as it eliminates TIME_WAIT lingering sockets on the server side.

https://redis.io/commands/quit/
@fabianfett fabianfett requested a review from Joannis August 4, 2023 09:08
@fabianfett fabianfett added the 🔨 semver/patch No public API change. label Aug 4, 2023
Copy link
Member

@Joannis Joannis left a comment

Choose a reason for hiding this comment

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

LGTM. I don't think reading the docs that older servers are affected.

@fabianfett fabianfett merged commit 2d626c8 into swift-server:main Aug 4, 2023
@fabianfett fabianfett deleted the ff-cherry-pick-graceful-close branch August 4, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants