-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: don't split header and body across TCP packets #168
Closed
stormshield-pj50
wants to merge
29
commits into
libp2p:master
from
stormshield-pj50:yamux_reserved_header_size
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
1c06435
Compilation + test using zerocopy ok
stormshield-pj50 39fa1e5
Fix after comments
stormshield-pj50 5d4e2d2
cargo fmt
stormshield-pj50 62002ae
WIP Minimal diff
thomaseizinger ee00e1d
Some basic fixes
thomaseizinger 801bf4f
Don't use `ready!` macro with `mem::replace`
thomaseizinger 8e11260
Inline variable
thomaseizinger aeb4cd2
Remove `Init` state
thomaseizinger f90c990
Use `?` for decoding header
thomaseizinger 93c3834
Use ctor
thomaseizinger 872815e
Use type-system to only allocate for data frames
thomaseizinger 722b7c8
Don't use `cast` outside of `header` module
thomaseizinger 91e812a
Add TODO
thomaseizinger c095aac
Replace header::decode() with Frame<T>::try_from_header_buffer()
pjalaber 2cab6b4
Cargo fmt
pjalaber 166f8ff
Reduce diff
thomaseizinger 5c6b172
Bring back header::decode
thomaseizinger 524994f
Reduce diff
thomaseizinger 0108a3d
Reduce diff
thomaseizinger 8d32d16
Resolve todo
thomaseizinger 851341e
Reduce diff
thomaseizinger 9b26409
Reduce diff
thomaseizinger 3df462d
Simplify things a bit further
thomaseizinger 09cda48
Use body_len in debug impl
thomaseizinger 5e3e65b
Remove generic length accessor
thomaseizinger ab29664
Reduce diff
thomaseizinger b65f2bd
Ensure we check max body len before allocating
thomaseizinger ee9c920
Don't allocate unless necessary
thomaseizinger ae3bc3d
WIP: Use `AsyncWrite::poll_write_vectored`
thomaseizinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why diverge from the
Future
signature here? In other words, why remove themut
?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.
Triggered by a clippy lint, we can put it back but given that it is an internal API, I wouldn't bother.