Skip to content

Discard excess data from response #53

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gBillal
Copy link
Contributor

@gBillal gBillal commented May 8, 2025

In this PR, we truncate the response if the received data exceed the expected body size. In my tests it happened a lot when sending a play request with TCP for media data.

If we don't handle this case, the rtsp client will crash when calling :gen_tcp.recv with a negative byte count as argument.

@mat-hek mat-hek requested a review from Noarkhh May 9, 2025 10:34
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.

1 participant