How do I ensure that the stack closes TCP connections after transaction completion?
The following two configuration parameters instruct the stack to close TCP connections after a linger period: gov.nist.javax.sip.CACHE_SERVER_CONNECTIONS=false Default is true. Does reference counting for server transactions if false and releases resources after refcount goes to 0. gov.nist.javax.sip.CACHE_CLIENT_CONNECTIONS=false Default is true. Does reference counting for client transactions and releases socket and thread resources after refcount goes to 0. Setting to false will close the connection and release any threads and buffers after all transactions that use the connection have terminated and a keepalive period (currently 32 sec) has expired. In some circumstances (eg. if you are supporting NAT via tcp, then it may be appropriate not to close server connections). Defaults for these are true – which may be appropriate to do if you are burrowing through firewalls using tcp.