ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.74k stars 5.28k forks source link

Forward: when unpublish crash caused by uninitialized forward connection. v6.0.107 #3914

Closed chundonglinlin closed 6 months ago

chundonglinlin commented 6 months ago

Description A crash occurs when a forward relay connection has not been established and an unpublish event is triggered simultaneously. For instance, if DVR and forward are configured with a specified DVR path that already exists, initiating a stream will trigger a crash.

Objective Fix the crash caused by the forward mechanism.

Additional Information For detailed reproduction steps, please refer to issue #3901.


TRANS_BY_GPT4


Co-authored-by: john hondaxiao@tencent.com