Skip to content

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 merged commit da1bedb into membraneframework:master Sep 3, 2025
4 checks passed
@gBillal gBillal deleted the discard-excess-data-on-response branch September 3, 2025 15:53
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