<div dir="ltr">Hi
<span style="color:rgb(136,136,136)">Henning,</span><div><span style="color:rgb(136,136,136)">I missed your reply as it went to another folder!.</span></div><div><span style="color:rgb(136,136,136)">Yes, I am restarting an active node and it is not closing the websocket tcp connection but the state of connection is FINWAIT. Capture shows neither at active node nor end point received any FIN packet.</span></div><div><span style="color:rgb(136,136,136)">The reason we suspect that switchover is moving VIP to the current passive node so fast that the active node is unable to complete tcp close activity. We have implemented ping pong from the client to detect network failure as a resolution.</span></div><div><span style="color:rgb(136,136,136)"><br></span></div><div><span style="color:rgb(136,136,136)">Thanks.</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 18, 2021 at 2:54 PM Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE" style="overflow-wrap: break-word;">
<div class="gmail-m_1663696656586908295WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">just to understand it correctly: You are restarting the Kamailio on the active node, and it does not close the existing Websocket TCP connections? Or you are restarting the Kamailio
on the second passive node?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-dev <<a href="mailto:sr-dev-bounces@lists.kamailio.org" target="_blank">sr-dev-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Shahid Hussain<br>
<b>Sent:</b> Thursday, June 17, 2021 1:54 PM<br>
<b>To:</b> <a href="mailto:sr-dev@lists.kamailio.org" target="_blank">sr-dev@lists.kamailio.org</a><br>
<b>Subject:</b> [sr-dev] Kamailio websocket state FINWAIT1 after switchover<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Hi !.,<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Kamailio websocket state is going into FINWAIT1 without sending FIN message out when we do service kamailio restart. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">I have a Primary and Secondary node configured. When I perform switchover socket status is going into FINWAIT1 state without sending FIN to the client hence client status is showing established, This is happening
90+% of times but does work sometimes.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">AT Kamailio:<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">[root@localhost ~]# netstat -tunelap | grep 41034<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">tcp 0 1 <a href="http://172.27.45.198:9040" target="_blank">
172.27.45.198:9040</a> <a href="http://172.27.6.98" target="_blank">172.27.6.98</a>:<span style="color:black;background:yellow">41034</span>
<span style="color:black;background:yellow">FIN_WAIT1</span> 0 0 -<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">[root@localhost ~]#<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">AT Nginx (client):<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">root@meet:~# netstat -tunelap | grep 9040<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">tcp 0 0 <a href="http://172.27.6.98" target="_blank">
172.27.6.98</a>:<span style="color:black;background:yellow">41034</span> <a href="http://172.27.45.198:9040" target="_blank">
172.27.45.198:9040</a> <span style="color:black;background:yellow">ESTABLISHED</span> 33 763106 1322/nginx: worker<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">root@meet:~#<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks,<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:35.4pt">Shahid<u></u><u></u></p>
</div>
</div>
</div>
</div>
</blockquote></div>