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

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

Open lizhongjie9999 opened 4 days ago

lizhongjie9999 commented 4 days 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)