ossrs / srs

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

SRS crash when quickly close webrtc publish #4188

Open kimichuan111 opened 2 months ago

kimichuan111 commented 2 months ago

前端通过webrtc推流,srs配置dvr录制功能,当webrtc推流成功后快速关闭,会概率性出现srs进程崩溃。dvr录制目录会有一个48B的tmp文件,查看srs log,没有报错提示 srs配置文件: vhost defaultVhost { rtc { enabled on; rtmp_to_rtc on; rtc_to_rtmp on; }

dvr {
    enabled      on;
    dvr_apply    all;
    dvr_path     /App/www/dvr/[app]/[stream].[timestamp].mp4;
    dvr_plan     session;
}
http_hooks {
     enabled         on;
     on_dvr          https://xxxxx/talk/dvr_hook/;
}

}

winlinvip commented 1 month ago

Please attach the coredump and stack trace.