[sr-dev] Kamailio websocket state FINWAIT1 after switchover

Henning Westerholt hw at skalatan.de
Fri Jun 18 11:24:06 CEST 2021


Hello,

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?

Cheers,

Henning



From: sr-dev <sr-dev-bounces at lists.kamailio.org> On Behalf Of Shahid Hussain
Sent: Thursday, June 17, 2021 1:54 PM
To: sr-dev at lists.kamailio.org
Subject: [sr-dev] Kamailio websocket state FINWAIT1 after switchover

Hi !.,
Kamailio websocket state is going into FINWAIT1 without sending FIN message out when we do service kamailio restart.
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.

AT Kamailio:
[root at localhost ~]# netstat -tunelap | grep 41034
tcp        0      1 172.27.45.198:9040<http://172.27.45.198:9040>      172.27.6.98<http://172.27.6.98>:41034       FIN_WAIT1   0          0          -
[root at localhost ~]#

AT Nginx (client):
root at meet:~# netstat -tunelap | grep 9040
tcp        0      0 172.27.6.98<http://172.27.6.98>:41034       172.27.45.198:9040<http://172.27.45.198:9040>      ESTABLISHED 33         763106     1322/nginx: worker
root at meet:~#

Thanks,
Shahid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210618/59d32062/attachment.htm>


More information about the sr-dev mailing list