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

Use time-manager >= 0.1.0 #115

Merged

Conversation

FinleyMcIlwaine
Copy link
Contributor

@FinleyMcIlwaine FinleyMcIlwaine commented Apr 26, 2024

The new time-manager API removes Handles immediately upon cancel, rather than relying on a timeout to occur. This effects http2 since servers processing many streams with a very long timeout will no longer accumulate Handles, as the Handles will be removed immediately when the stream is closed.

This PR bumps the time-manager dependency to include these changes and bumps the http2 version to 5.2.1.

The new time-manager API removes `Handle`s immediately upon `cancel`, rather
than relying on a timeout to occur. This effects http2 since servers processing
many streams with a very long timeout will no longer accumulate `Handle`s, as
the `Handle`s will be removed immediately when the stream is closed.

Bumped version to 5.2.1.
@edsko
Copy link
Contributor

edsko commented Apr 27, 2024

@kazu-yamamoto The good news is that initial testing suggests that after this PR, a grapesy/http2 server has zero memory leaks :)

@kazu-yamamoto kazu-yamamoto self-requested a review April 27, 2024 09:29
Copy link
Owner

@kazu-yamamoto kazu-yamamoto left a comment

Choose a reason for hiding this comment

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

LGTM

@kazu-yamamoto kazu-yamamoto merged commit b054a70 into kazu-yamamoto:main Apr 27, 2024
@kazu-yamamoto
Copy link
Owner

All relating packages are released.
Thanks!

@edsko
Copy link
Contributor

edsko commented Apr 27, 2024

Thanks @kazu-yamamoto !

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.

None yet

3 participants