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

Stream doesn't check for io.ErrShortBuffer returns from reassemblyQueue.read #50

Closed
cohosh opened this issue Jun 19, 2019 · 0 comments · Fixed by #51
Closed

Stream doesn't check for io.ErrShortBuffer returns from reassemblyQueue.read #50

cohosh opened this issue Jun 19, 2019 · 0 comments · Fixed by #51

Comments

@cohosh
Copy link
Contributor

cohosh commented Jun 19, 2019

Your environment.

What did you do?

Used the pion/webrtc library for the the proxy side of our snowflake anti-censorship system that reads from a WebRTC connection to the client. I used keroserene/go-webrtc as the library on the client side and found data being dropped despite the usage of a reliable channel.

What did you expect?

I expected to receive all of the data that I sent

What happened?

Large chunks of data were missing.

More details:

It turns out Stream is not returning io.ErrShortBuffer errors from reassemblyQueue.read. Instead the error is being overwritten and the data is lost. Stream.ReadSCTP should instead return the error.

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 a pull request may close this issue.

1 participant