<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>      I am using proxy server to relay the rtp stream that coming from a back-end rtsp server.After following steps the proxy server is broken down.<BR>The steps as the following:<BR>1)begin to relay the rtp stream and connect to the server using vlc.<BR>2)restart the back-end rtsp server,after [30..61] seconds(the OPTION command delay) close the vlc that opened at step 1<BR>3)then the proxy server is broken down and there have a segmentation fault error at the linux console<BR>     I have read the source code and found that<BR>when the proxy server lost connect to the back-end server it will delete all Subsessions(using fOurServerMediaSession.deleteAllSubsessions()).<BR>But when vlc is closed it will send a TEARDOWN command to the proxy server and the proxy server will delete stream for each subsession(at the RTSPServer::RTSPClientSession<BR>::handleCmd_TEARDOWN(...)).When deleting the streams the subsession has been deleted at the deleteAllSubsessions() function,so the subsession is a invalidate pointer.<BR>When calling the invalidate pointer the proxy server is broken down.Is there anything to do to correct this issue?<BR> <BR> Thank you very much.</DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>