Skip to content

Conversation

biglittlebigben
Copy link
Contributor

No description provided.

@biglittlebigben biglittlebigben requested a review from a team as a code owner September 17, 2025 04:23
@boks1971
Copy link

Were these causing some of the e2e failures which said something like state expected to be ENDED, but is ENDPOINT_PUBLISHING?

}

s.result <- err
select {
Copy link
Contributor

Choose a reason for hiding this comment

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

trying to understand this part better - I assume this is done to avoid blocking - and since the channel is already buffered (1) - where else we have writing to the channel? Is whip different in that regard as try send isn't used there?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change should not be needed with the code as it stands. However, without this the code is not idempotent, and we have a risk of getting a deadlock if we ever (potentially after a code change somewhere else) have a case where we write to the channel more than once.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 - updating whip appsrc with the same pattern sounds good then

@milos-lk
Copy link
Contributor

would also be good to have pipeline state changes logged so we get more info when this happen to narrow down the source of the issue - I created a small PR for that: #380

@biglittlebigben
Copy link
Contributor Author

Were these causing some of the e2e failures which said something like state expected to be ENDED, but is ENDPOINT_PUBLISHING?

Yes. e2e is catching the pipeline not shutting down with RTMP, as it should.

@biglittlebigben biglittlebigben merged commit 5325719 into main Sep 17, 2025
6 checks passed
@biglittlebigben biglittlebigben deleted the benjamin/disconnect_hang branch September 17, 2025 18:45
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.

3 participants