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.87k stars 5.39k forks source link

no pushing stream scenario, http-flv fails to pull stream for the second time #4103

Open lizhongjie9999 opened 5 months ago

lizhongjie9999 commented 5 months ago

Describe the bug pull http-flv stop, cleanup die source, need call http_unmount(SrsRequest* r)

Version commit ea7e2c2

To Reproduce Steps to reproduce the behavior:

  1. Start pulling stream (http-flv), no pushing stream, stop pulling stream, wait for stream cleanup (print output: free live source id=[])
  2. Start pulling again (http-flv), disconnection with error (serve error code=1097(NoSource)(No source found) : process request=0 : cors serve : serve http : no source for /live/livestream)