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

Leave overflow logic to go-msgio #13

Merged
merged 1 commit into from
Jan 30, 2016

Conversation

tilgovi
Copy link
Contributor

@tilgovi tilgovi commented Jan 30, 2016

go-msgio implements the message length limit (currently 8MB), so the
secio reader can get away without re-implementing this logic.

Instead, the reader lets go-msgio allocate a buffer when the output
buffer is too small to hold the incoming message. This buffer is kept
and drained into the output buffer(s) of Read() calls and released back
to the msgio instance once it is fully drained.

License: MIT
Signed-off-by: Randall Leeds [email protected]

go-msgio implements the message length limit (currently 8MB), so the
secio reader can get away without re-implementing this logic.

Instead, the reader lets go-msgio allocate a buffer when the output
buffer is too small to hold the incoming message. This buffer is kept
and drained into the output buffer(s) of Read() calls and released back
to the msgio instance once it is fully drained.

License: MIT
Signed-off-by: Randall Leeds <[email protected]>
@whyrusleeping
Copy link
Contributor

cool, LGTM. thanks!

whyrusleeping added a commit that referenced this pull request Jan 30, 2016
@whyrusleeping whyrusleeping merged commit a24d8ba into libp2p:master Jan 30, 2016
marten-seemann pushed a commit that referenced this pull request Apr 22, 2022
marten-seemann added a commit that referenced this pull request Apr 27, 2022
avoid using interface{} when generating certificates
@tilgovi tilgovi deleted the cleanup-secio-reader-overflow branch May 13, 2022 00:38
marten-seemann pushed a commit that referenced this pull request Aug 17, 2022
marten-seemann added a commit that referenced this pull request Sep 3, 2022
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