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

Easy access to current fragment count and total fragment count #234

Open
NyakoFox opened this issue Dec 31, 2023 · 1 comment
Open

Easy access to current fragment count and total fragment count #234

NyakoFox opened this issue Dec 31, 2023 · 1 comment

Comments

@NyakoFox
Copy link

In what I'm writing, I have to send some pretty large packets, which get fragmented. I have a progress bar, and I'd like to update it as fragments are getting received, so it doesn't just look like it stalled when it's receiving fragments. An easy way to access the current fragment count and the total fragment count would be appreciated.

@lsalzman
Copy link
Owner

lsalzman commented Dec 31, 2023

Remember there can be multiple incoming large packets that can each be fragmented individually, so there is no easy single statistic that I could put in the peer to monitor this.

The best way to monitor progress is to do your own fragmentation for those cases where the user needs to see some sort of progress score, and keep your own score on them as they come in, because this is usually a very application specific thing to track, like sending large files, downloads, etc

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

No branches or pull requests

2 participants