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

Add established_tcp_stream_count{,_on} #188

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

marcbowes
Copy link
Contributor

This commit adds a utility method to count the number of established tcp streams on a given host (or the current host). This can be used to verify connections have been cleaned up, which is sometimes tricky to reason about due to a combination of how tcp cleans up and how Drop works.

This commit adds a utility method to count the number of established tcp
streams on a given host (or the current host). This can be used to
verify connections have been cleaned up, which is sometimes tricky to
reason about due to a combination of how tcp cleans up and how Drop
works.
@marcbowes marcbowes requested a review from mcches October 4, 2024 04:16
Copy link
Contributor

@mcches mcches left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@mcches mcches merged commit 3a38ee6 into tokio-rs:main Oct 4, 2024
3 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