### Description
By using the WebSocket module we noticed that the memory on the server keeps increasing daily even if the number of registered devices is decreasing
### Troubleshooting
#### Reproduction
Connect to the server through the wss and then disable the network adapter.
#### Debugging Data
If the TCP connection is closed forcefully (tested by disabling network adapter) then the number of current wss connections is not decreasing:
```
kamcmd stats.get_statistics all | grep "ws_current_connections"
```
The same happens with the allocated shared memory:
```
kamcmd mod.stats all shm | grep 'wsconn_'
```
wsconn_add(198) - this value is not decreasing.
Everything is working properly if the TCP connection is properly closed.
* **Operating System**:
```
CentOS 7 X64
3.10.0-1160.76.1.el7.x86_64
version: kamailio 5.6.1 (x86_64/linux) d8f98b
```
XHTTP Request Route:
```
event_route[xhttp:request] {
set_reply_close();
set_reply_no_connect();
if (ws_handle_handshake()) {
xlog("L_INFO", "[$cfg(route)] websocket|log|handled HTTP request $rm from $si:$sp\n");
exit;
}
}
```
TCP Settings:
```
tcp_connection_lifetime=3605
tcp_accept_no_cl=yes
tcp_rd_buf_size=16384
tcp_connect_timeout=10
tcp_crlf_ping=yes
tcp_delayed_ack = yes
tcp_fd_cache = yes
tcp_keepalive = yes
tcp_keepcnt = 3
tcp_keepidle = 30
tcp_keepintvl = 10
tcp_accept_aliases=no
tcp_async=yes
tcp_linger2=30
tcp_max_connections=4096
tcp_send_timeout = 10
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3236
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3236(a)github.com>
Hello,
Kamailio SIP Server v5.5.5 stable release is out.
This is a maintenance release of the stable branch 5.5 that
includes fixes since the release of v5.5.4. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.5.x. Deployments running previous v5.5.x
versions are strongly recommended to be upgraded to v5.5.5.
Note that 5.5 is the second last stable branch, still officially maintained
by Kamailio development team. The latest stable branch is 5.6, with
v5.6.1 being release out of it.
For more details about version 5.5.5 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2022/09/kamailio-v5-5-5-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
Oct 10-13, 2022 (Europe Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/