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

Handle socket closed by client before start of stream arrives in RTMP Source Bin #87

Conversation

nickdichev-firework
Copy link
Contributor

@nickdichev-firework nickdichev-firework commented Feb 28, 2024

I had a flow in my application where the client was closing the socket before the start of stream was being sent. That was causing the RTMP source to send a message :unexpected_socket_closed to the parent, which in my case is the RTMP Source Bin. https://github.com/membraneframework/membrane_rtmp_plugin/blob/v0.22.1/lib/membrane_rtmp_plugin/rtmp/source/source.ex#L228

This message is not being handled by the bin so it causes a crash in my application. I have added handling for this case and decided to send the message to the bin's parent.

Copy link
Member

@Qizot Qizot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thank you for the fix!

Could you please bump the version in mix.exs and in README.md (the patch version)?

@nickdichev-firework
Copy link
Contributor Author

@Qizot sure, it is no problem, however, I'm not sure the patch version is the correct one to bump. Since now a new message is being sent to the parent pipeline if it is not explicitly handled it can crash the pipeline. What do you think?

@Qizot
Copy link
Member

Qizot commented Feb 29, 2024

@nickdichev-firework you're right. Bump the minor then :)

@nickdichev-firework
Copy link
Contributor Author

@Qizot I've sent a commit to bump the version.

@Qizot Qizot merged commit 324cd3e into membraneframework:master Mar 1, 2024
3 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