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

srs rejects request while downstream server disconnects and then reconnects in a short time. #2284

Closed
wants to merge 2 commits into from

Conversation

bluestn
Copy link
Contributor

@bluestn bluestn commented Apr 14, 2021

bugfix: while downstream server disconnects and reconnects in a short time, srs rejects the push request because SrsForwarder::cycle is sleeping for SRS_FORWARDER_CIMS, and the stream is still busy.

bugfix: misleading error log information for transcode engine config param.
…hen reconnects in a short time.

bugfix: while downstream server disconnects and reconnects in a short time, srs rejects the push request because SrsForwarder::cycle is sleeping for SRS_FORWARDER_CIMS, and the stream is still busy.
@winlinvip
Copy link
Member

winlinvip commented Apr 14, 2021

Hmm, this critical situation indeed deserves careful handling.
In addition to the Forwarder, the Edge might also encounter this situation, so we need to consider it together.

TRANS_BY_GPT3

@winlinvip winlinvip force-pushed the 3.0release branch 27 times, most recently from af2f6bb to 3c0fc9b Compare August 15, 2021 09:07
@winlinvip winlinvip force-pushed the 3.0release branch 4 times, most recently from 1ca9308 to 8d44b98 Compare August 15, 2021 09:22
@winlinvip winlinvip self-requested a review August 27, 2021 00:09
@winlinvip winlinvip self-assigned this Aug 27, 2021
@winlinvip winlinvip modified the milestone: SRS 4.0 release Aug 27, 2021
//
// We always check status first.
// @see https://github.com/ossrs/srs/issues/1634#issuecomment-597571561
if ((err = trd->pull()) != srs_success) {
Copy link
Member

@winlinvip winlinvip Oct 30, 2021

Choose a reason for hiding this comment

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

Thank you very much 👍

It would be more appropriate to add error detection before and after the Forward cycle.

I have already merged this place: link

TRANS_BY_GPT3

@winlinvip winlinvip closed this Oct 30, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Nov 4, 2021

Well, this critical situation indeed deserves careful handling. Besides the Forwarder, the Edge might also have this situation, so we need to consider it together.

Edge should also be needed. Otherwise, it will keep retrying. @winlinvip
#2707 (comment)

TRANS_BY_GPT3

@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
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

Successfully merging this pull request may close these issues.

3 participants