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

Limit in/out buffer growth with a Vec<u8> wrapper #328

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

maciejhirsz
Copy link
Collaborator

@maciejhirsz maciejhirsz commented Sep 17, 2020

This PR introduces a CappedBuffer wrapper around a Vec<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.

Copy link

@dvdplm dvdplm left a comment

Choose a reason for hiding this comment

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

lgtm

@bkchr
Copy link

bkchr commented Sep 18, 2020

CC @Eijebong :)

@Eijebong would it maybe be possible to add someone from our company as maintainer?

@Eijebong
Copy link
Collaborator

Eijebong commented Oct 4, 2020

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

@bkchr
Copy link

bkchr commented Oct 6, 2020

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 :)

@Eijebong
Copy link
Collaborator

I actually don't have the rights to do so

@housleyjk if you could do it, that'd be nice

@palfrey
Copy link

palfrey commented Jun 26, 2022

@housleyjk Any thoughts on this?

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.

out_buffer grows until allocation fails
6 participants