<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>I am facing an odd behavior of the RTSP server and it is something that looks like a bug to me.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>To easily reproduce it, just use a RTSP server (live555MediaServer on a CentOS distro for exemple) on a computer A and connect it with a client (like VLC) on a second computer B.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>Then if you disconnect the Ethernet wire of the computer B, the server will close the session, the RTP and RTCP sockets (in UDP mode), but not the RTSP connection (in TCP) : the socket remains open (seen with </span><b><span lang=EN-US style='font-family:Consolas'>lsof –a –i tcp –p <live555MediaServerPID></span></b><span lang=EN-US style='font-family:"Arial","sans-serif"'>).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>After the reconnection, a new RTSP/TCP socket will be opened but the old one remains established “ad vitam aeternam” despite it is not used anymore.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>From my point of view, it is a resource leak.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>What do you think about it? Am I doing something wrong? Is there something to tune in the OS to close this socket?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'>Denis.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width="89%" style='width:89.46%;border:none;border-top:solid #00BBDF 3.0pt'><tr><td valign=top style='border:none;padding:0cm 0cm 0cm 0cm'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=350 style='width:262.5pt;margin-left:7.5pt'><tr><td style='padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='mso-margin-top-alt:7.5pt;margin-right:0cm;margin-bottom:7.5pt;margin-left:0cm'><span style='mso-fareast-language:FR'><img width=140 height=34 id="_x0000_i1031" src="cid:image001.png@01D3F807.9DF90AC0" alt=Thales></span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td></tr><tr><td width=350 valign=top style='width:262.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal style='mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;mso-fareast-language:FR'>Denis GENESTIER</span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><br></span><i><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'>INGENIEUR COMPOSANTS LOGICIEL</span></i><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'><br>Tel.: +33 (0) 1 73 32 19 51<br>Fax: +33 (0)1 73 32 16 95</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'> <o:p></o:p></span></p></td></tr><tr><td width=350 valign=top style='width:262.5pt;padding:7.5pt 0cm 7.5pt 0cm'><div style='mso-element:para-border-div;border:none;border-top:dotted #BFBFBF 1.0pt;padding:8.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'>THALES COMMUNICATIONS & SECURITY S.A.S</span></b><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'>20-22 rue Grange Dame Rose<br>78141 VELIZY Cedex </span><span style='font-size:12.0pt;font-family:"Times New Roman","serif";color:gray;mso-fareast-language:FR'><o:p></o:p></span></p></td></tr><tr><td width=350 valign=top style='width:262.5pt;border:none;border-top:dotted #BFBFBF 1.0pt;padding:7.5pt 0cm 7.5pt 0cm'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray;mso-fareast-language:FR'><a href="http://www.thalesgroup.com"><span style='font-size:8.5pt;color:gray'>www.thalesgroup.com</span></a><o:p></o:p></span></p></td></tr><tr><td style='border:none;border-top:dotted #BFBFBF 1.0pt;padding:15.0pt 0cm 0cm 0cm'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left style='margin-left:-2.25pt'><tr><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="http://www.linkedin.com/company/thales" title=LinkedIn><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1030" src="cid:image002.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_linkedin.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="https://twitter.com/thalesgroup" title=Twitter><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1029" src="cid:image003.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_twitter.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="https://www.facebook.com/thalesgroup" title=Facebook><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1028" src="cid:image004.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_fb.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="https://www.youtube.com/user/thethalesgroup" title=YouTube><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1027" src="cid:image005.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_youtube.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="https://pinterest.com/thalesgroup/" title=Pinterest><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1026" src="cid:image006.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_pinterest.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td><td width=38 style='width:28.5pt;padding:0cm 0cm 0cm 0cm'><p class=MsoNormal><a href="https://plus.google.com/+thales" title="Google+"><span style='color:blue;mso-fareast-language:FR;text-decoration:none'><img border=0 width=32 height=32 id="_x0000_i1025" src="cid:image007.png@01D3F807.9DF90AC0" alt="http://intranet.peopleonline.corp.thales/portal/outlook/signature/ico_google.png"></span></a><span style='font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:FR'><o:p></o:p></span></p></td></tr></table></td></tr></table></td></tr></table><p class=MsoNormal><span style='mso-fareast-language:FR'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>