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

Fix: receiver hang indefinitely #240

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

nvkhoi112358
Copy link
Contributor

@nvkhoi112358 nvkhoi112358 commented Dec 23, 2024

After writing the first bytes from buffer, it doesn't "notify" the reader
and continue to write to the buffer without knowing buffer is consumed entirely or not.

The reader hence can send wrong data to receiver. With incorrect box size, it can hang forever.

testpic segment size is small (<65536), so it is not affected.

Big thanks to @NhanNguyen700 for the fix.

@nvkhoi112358 nvkhoi112358 changed the title Fix: receive hang indefinitely Fix: receiver hang indefinitely Dec 23, 2024
After writing the first bytes from buffer, it doesn't "notify" the reader
and continue to write to the buffer without knowing buffer is consume entirely or not.

The reader hence can send wrong data to receiver. With incorrect box size, it can hang forever.

`testpic` segment size is small (<65536), so it is not affected.
@tobbee
Copy link
Contributor

tobbee commented Dec 30, 2024

@nvkhoi112358 and @NhanNguyen700. Thanks for the fix! Good that you use the code for higher bitrate content,

@tobbee tobbee merged commit 50ac9db into Dash-Industry-Forum:main Dec 30, 2024
4 checks passed
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 this pull request may close these issues.

2 participants