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

Adjust reap interval based on timeouts #744

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

oko256
Copy link
Contributor

@oko256 oko256 commented Oct 2, 2024

The current hardcoded reap interval of 1 second causes evasive/silent/expired timeouts of less than 1 second to be completely ineffective since the timeouts are checked anyway at every reap interval.

This PR changes it so that it uses the smallest of the timeouts for reap interval instead and only uses the hardcoded value as the maximum reap interval when big timeouts are being used, thus not breaking the backwards compatibility but allowing small timeouts to work as expected.

Also added a test case which tests the basic functionality of the EVASIVE timeout.

Hardcoded reap interval of 1 second causes evasive/silent/expired
timeouts of less than 1 second to be completely ineffective. Choose the
smallest timeout for reap interval instead and only use the hardcoded
value as the maximum reap interval when big timeouts are being used.
@sphaero sphaero merged commit dcd74b5 into zeromq:master Oct 3, 2024
8 of 9 checks passed
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.

2 participants