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

feat: implement connection timeout functionality #4407

Merged
merged 2 commits into from
Jan 21, 2025
Merged

feat: implement connection timeout functionality #4407

merged 2 commits into from
Jan 21, 2025

Conversation

romange
Copy link
Collaborator

@romange romange commented Jan 5, 2025

timeout argument shuts down idle connections after the specified time.

Fixes #1677

@romange romange force-pushed the Pr2 branch 5 times, most recently from c09c45c to cc30718 Compare January 8, 2025 12:34
@romange romange requested a review from adiholden January 8, 2025 13:37

ABSL_FLAG(uint32_t, interpreter_per_thread, 10, "Lua interpreters per thread");
ABSL_FLAG(uint32_t, timeout, 0,
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe rename to connection_timeout?

Copy link
Collaborator

Choose a reason for hiding this comment

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

do you intend to change the default in the future?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the name and the default value are compatible with valkey. see https://github.com/valkey-io/valkey/blob/unstable/valkey.conf#L161

@romange romange force-pushed the Pr2 branch 3 times, most recently from 3540dc3 to eea9821 Compare January 19, 2025 11:15
`timeout` argument shuts down idle connections after the specified time.

Fixes #1677

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange merged commit 20bc318 into main Jan 21, 2025
9 checks passed
@romange romange deleted the Pr2 branch January 21, 2025 11:46
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.

Add timeout flag
2 participants