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

poll_data_channel: implement polling instead of proxying to stream #9

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

melekes
Copy link
Contributor

@melekes melekes commented Jun 17, 2022

Since DataChannel has its own read & write implementations (which call
Stream::read and Stream::write), we can't poll stream directly, but have
to construct futures ourselves and poll them.

Most of the code was copied from sctp::Stream.

Since DataChannel has its own read & write implementations (which call
Stream::read and Stream::write), we can't poll stream directly, but have
to construct futures ourselves and poll them.

Most of the code was copied from sctp::Stream.
@melekes melekes self-assigned this Jun 17, 2022
@codecov
Copy link

codecov bot commented Jun 17, 2022

Codecov Report

Merging #9 (f62381f) into main (714deda) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
- Coverage   14.98%   14.92%   -0.07%     
==========================================
  Files           7        7              
  Lines        3310     3310              
  Branches      960      958       -2     
==========================================
- Hits          496      494       -2     
- Misses       2531     2533       +2     
  Partials      283      283              
Impacted Files Coverage Δ
src/error.rs 5.53% <0.00%> (-0.66%) ⬇️

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 714deda...f62381f. Read the comment docs.

@melekes melekes requested a review from k0nserv June 17, 2022 09:27
@melekes melekes merged commit d2c65a2 into webrtc-rs:main Jun 17, 2022
@melekes melekes deleted the anton/fix-poll-data-channel branch June 17, 2022 14:25
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.

1 participant