<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi!<br><br></div>In our project we uses FFmpeg to demux RTMP streams. Input stream takes from Wowza/nginx-rtmp. Our application is a daemon that try to connect to source periodicaly if it does not present (does not published to Wowza, for example). We also use interrupt callback to break connection if timeout is occured. So in this situation:<br></div>- Alive server<br></div>- Alive streaming application<br></div>- Configured inerrupt callback with timeout<br></div>- Disalive stream<br><br></div>TCP socket to server does not closes.<br><br></div>I look into code with debugger and found place where error is occured:<br></div>rtmpproto.c, rtmp_open() L:2672<br><br></div>Root couse: return from function without resources clean up<br><br></div>Solution: replace return with 'goto fail'<br><br></div>Path is attached.<br clear="all"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br>-- <br><div dir="ltr"><div>WBR, Alexander Drozdov<br></div><a href="http://htrd.su" target="_blank">http://htrd.su</a><br></div>
</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>