[rtmpdump] Infinite loop bug: Network disconnects while publishing RTMP Stream
hyc at highlandsun.com
Mon May 28 01:00:55 CEST 2012
Sreekanth Annapureddy wrote:
> Dear All,
> I think I ran into a bug while publishing RTMP stream using librtmp.
> Consider the scenario when I disconnect from network on fly while publishing
> an RTMP audio/video stream. The WriteN() function detects that network is
> disconnected, and tries to close the RTMP session by calling RTMP_Close().
> However, we seem to get into a infinite loop since RTMP_Close() calls
> SendFCUnpublish() which in turn calls WriteN(), and so on.
> Please let me know if this is indeed a bug or if my understanding is incorrect.
> Thanks for your time,
Fixed in git about a year ago, you're far out of date.
commit ID 159a06ebe6d82ef20f2c77c497d55af00d2e0b78
More information about the rtmpdump