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

ensure reap does not enter infinite loop #193

Merged

Conversation

ttstarck
Copy link
Collaborator

With the changes in #189 , it is possible when calling TimedStack#reap with a very low value (like 0) to enter an infinite loop, if while we are attempting to close the connection, another connection is put back on the stack.

We should ensure that when reap is called, we at most only attempt to reap the number of connections at the time that were idle.

@ttstarck ttstarck force-pushed the ensure_reap_does_not_enter_infinite_loop branch from 20a021b to f9de533 Compare August 17, 2024 01:21
@ttstarck ttstarck marked this pull request as ready for review August 17, 2024 01:24
@mperham mperham merged commit 4fcffb0 into mperham:main Aug 26, 2024
9 checks passed
@ttstarck ttstarck deleted the ensure_reap_does_not_enter_infinite_loop branch August 27, 2024 21:20
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