This repository was archived by the owner on Aug 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
implement tokio's AsyncRead and AsyncWrite for Stream #9
Merged
rainliu
merged 17 commits into
webrtc-rs:main
from
melekes:anton/async-read-write-for-stream
Apr 26, 2022
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b20e9a9
implement tokio's AsyncRead and AsyncWrite for Stream
melekes 51fb1ce
add PollStream wrapper
melekes 58c8f8b
add a temporary buffer to read into
melekes 3c6f6bc
copy some of fn from Stream
melekes 3f856f8
fix remaining errors
melekes 454cd6d
clear futures upon errors too
melekes dbb854c
handle EOF
melekes 1017d64
remove read_buf and make PollStream public
melekes 38f064c
add doc test for PollStream
melekes 88b26de
allocate temp_buf
melekes 8176d58
test shutdown
melekes f8632c1
write a few more tests
melekes da50537
fix an issue with Pending state during poll_write
melekes 5e72dab
use fixed size read buffer
melekes 91b868e
fix a bug where a part of data was lost
melekes 032b264
don't set read_fut to idle if data is not fully read
melekes 58db7bf
format code
melekes 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.