Skip to content

AI: SRT: Fix player not exiting when publisher disconnects. v7.0.130 (#4591)#4596

Merged
winlinvip merged 1 commit intoossrs:developfrom
ossrs-ai:srt/disconnect-viewer-by-timeout
Nov 28, 2025
Merged

AI: SRT: Fix player not exiting when publisher disconnects. v7.0.130 (#4591)#4596
winlinvip merged 1 commit intoossrs:developfrom
ossrs-ai:srt/disconnect-viewer-by-timeout

Conversation

@ossrs-ai
Copy link
Contributor

@ossrs-ai ossrs-ai commented Nov 28, 2025

When SRT publisher disconnects, player hangs indefinitely instead of exiting after the configured peer_idle_timeout. This is because the consumer wait() never checks if the publisher is still connected.

After fix, player waits for peer_idle_timeout (default 10s) then exits gracefully when no packets arrive and publisher has disconnected.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Nov 28, 2025
@winlinvip winlinvip merged commit 18c30dc into ossrs:develop Nov 28, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EnglishNative This issue is conveyed exclusively in English.

Development

Successfully merging this pull request may close these issues.

[Bug] v7.0.128 SRT server doesn't notify client of EOF connection and doesn't honor timeout config

2 participants