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

After the stream is triggered to dispose, subsequent attempts to push the stream will continuously fail. #4210

Open
retamia opened this issue Oct 24, 2024 · 0 comments
Labels
TransByAI Translated by AI/GPT.

Comments

@retamia
Copy link
Contributor

retamia commented Oct 24, 2024

!!! Before submitting a new bug report, please ensure you have searched for any existing bugs. Duplicate issues or
questions that are overly simple or already addressed in the documentation will be removed without any
response.

Describe the bug

serve error code=1098(StreamDisposing)(Stream is disposing)

After the stream is triggered to dispose, subsequent attempts to push the stream will continuously fail.

Version
6.0release

Additional context

SrsRtmpConn::publishing -> acquire_publish -> SrsLiveSource::on_publish

The SrsLiveSource::on_publish function changed the value of can_publish_ to false and returned an error (serve error code=1098(StreamDisposing)(Stream is disposing) : service cycle : rtmp: stream service : handle publish : http mount : stream is disposing). Because an error was returned, the SrsRtmpConn::publishing function did not call release_publish, resulting in can_publish_ remaining false.

Subsequently, when attempting to stream again, because can_publish_ is set to false, all subsequent streaming attempts will fail.

TRANS_BY_GPT4

@winlinvip winlinvip changed the title 推流触发Stream is disposing后,后续的推流就会一直失败 After the stream is triggered to dispose, subsequent attempts to push the stream will continuously fail. Oct 24, 2024
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants