-
Notifications
You must be signed in to change notification settings - Fork 221
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
Limit in/out buffer growth with a Vec<u8> wrapper #328
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, I had notifications muted for this repository. I don't have time nor motivation for open source these days but I'd be happy to add someone as maintainer |
Hey, no problem. It would be nice if you could invite @maciejhirsz to the repo and on crates.io :) |
I actually don't have the rights to do so @housleyjk if you could do it, that'd be nice |
@housleyjk Any thoughts on this? |
This PR introduces a
CappedBuffer
wrapper around aVec<u8>
which effectively enforces buffer capacity limits. Exceeding capacity limits will force a disconnect.There are changes to the settings involved, so this is a breaking change.
Fixes #291.