resip/stack/ConnectionManager performs some basic garbage collection on stream connections (TCP, TLS, WS and WSS connections)
A recent change makes it use getrlimit() on UNIX platforms to find out how many connections are possible. However, this is not very precise and it is not implemented for Windows.
With more users doing WebSocket and federated VoIP over TLS connections, file descriptors will need to be managed much more carefully as more connections will be kept open concurrently and sometimes long after they were really needed.
- more accurately count the actual number of descriptors in use (currently it just counts the number of stream connections, this ignores the other file descriptors for things like listening sockets and open files)
- similar checks for Windows
- warning about low ulimit at startup