I have cherry-picked commit e7bd1570e3788e9d04047b4d1d00cb8bd8b172d3 into 5.6 branch and installed it on the server. Now I can see WebSocket ID in Kamailio logs but cannot find it in the log the WebSocket connection is created. Now I can ln the Kamailio log. ``` INFO: WebSocket [ws_frame.c:814]: ws_keepalive(): tcp connection has been lost (id: 34 wsc: 0xffff7e390d90) ``` In the log, I found when the connection created ``` INFO: <script>: websocket|log|opened websocket 34 from 2605:84c0:90:11::101:60157 ``` PCAP for TCP connection via port 60157 is attached. [tcp_60157.pcap.gz](https://github.com/kamailio/kamailio/files/10417302/tcp_60157.pcap.gz)
For me looks like the WebSocket TCP connection closed properly. But Komilio is cleaning not all memory structures related to this connection.