Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Apr 17, 2022

melekes added 3 commits April 19, 2022 14:54
webrtc-rs#9 (comment)

BEFORE: if `temp_buf.len()` is greater than `buf.remaining()`, than
we're loosing some data in `temp_buf`.

AFTER: if `temp_buf.len()` is greater than `buf.remaining()`, than we're
switching to a special variant of `ReadFut` - `RemainingData(Vec<u8>)`. When
another poll_read comes in, remaining data is used to populate `buf`.
@codecov
Copy link

codecov bot commented Apr 20, 2022

Codecov Report

Merging #9 (58db7bf) into main (c20d296) will decrease coverage by 0.01%.
The diff coverage is 53.65%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
- Coverage   59.06%   59.05%   -0.02%     
==========================================
  Files          48       48              
  Lines        4964     5016      +52     
  Branches     1486     1502      +16     
==========================================
+ Hits         2932     2962      +30     
- Misses        654      659       +5     
- Partials     1378     1395      +17     
Impacted Files Coverage Δ
src/stream/stream_test.rs 44.00% <51.51%> (+4.97%) ⬆️
src/error.rs 50.00% <62.50%> (+50.00%) ⬆️
src/chunk/chunk_forward_tsn.rs 63.41% <0.00%> (-0.79%) ⬇️
src/param/param_heartbeat_info.rs 0.00% <0.00%> (ø)
src/param/param_outgoing_reset_request.rs 78.72% <0.00%> (+0.46%) ⬆️
src/param/param_reconfig_response.rs 69.35% <0.00%> (+0.50%) ⬆️
src/param/param_state_cookie.rs 77.14% <0.00%> (+0.67%) ⬆️
src/param/param_requested_hmac_algorithm.rs 44.06% <0.00%> (+0.96%) ⬆️
src/param/param_supported_extensions.rs 62.85% <0.00%> (+1.09%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c20d296...58db7bf. Read the comment docs.

@rainliu rainliu merged commit 9f1704a into webrtc-rs:main Apr 26, 2022
@melekes melekes deleted the anton/async-read-write-for-stream branch April 27, 2022 05:05
melekes added a commit to melekes/webrtc-data that referenced this pull request Apr 27, 2022
melekes added a commit to melekes/webrtc-data that referenced this pull request Apr 27, 2022
melekes added a commit to melekes/webrtc-data that referenced this pull request Jun 15, 2022
algesten pushed a commit to webrtc-rs/webrtc that referenced this pull request Aug 23, 2022
algesten pushed a commit to webrtc-rs/webrtc that referenced this pull request Aug 23, 2022
webrtc-rs/sctp#9 (comment)

BEFORE: if `temp_buf.len()` is greater than `buf.remaining()`, than
we're loosing some data in `temp_buf`.

AFTER: if `temp_buf.len()` is greater than `buf.remaining()`, than we're
switching to a special variant of `ReadFut` - `RemainingData(Vec<u8>)`. When
another poll_read comes in, remaining data is used to populate `buf`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make data::data_channel::DataChannel implement tokio::io AsyncRead and AsyncWrite traits

3 participants