-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Panic when publishing to a path with runOnDemand without any clients reading #2636
Comments
I also discovered that in previous versions, putting something into |
Thanks for the quick fix @aler9! I can confirm that it resolves the panic introduced in v1.2.1, however, it seems to have change the functionality from earlier versions. In v1.2.0 and earlier, MTX would correctly terminate the path/stream if
In the latest build, it seems to leave path open/streaming:
|
Yes, i noticed that, but that feature was never documented and was not intended to be into the server. If you want to disconnect the publisher when there are no clients connected anymore, put the publisher into
Thus a publisher is closed correctly when there are no clients anymore, and when the publisher is inside I'll also add |
That's what I was initially thinking of doing, however, Would it be possible to have an alternate option that mimics the previous functionality by terminating a specific path if there aren't any clients reading or the last client stops reading? |
This issue is mentioned in release v1.3.0 🚀 |
This issue is being locked automatically because it has been closed for more than 6 months. |
Which version are you using?
v1.2.1
Which operating system are you using?
Describe the issue
MTX panics if
runOnDemand
is set for a path and publish to the path before a client starts reading from that path.This was not an issue in v1.2.0 which would correctly terminate the stream.
Describe how to replicate the issue
runOnDemand
for a specific pathor
Did you attach the server logs?
yes
Did you attach a network dump?
no
The text was updated successfully, but these errors were encountered: