<div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>shared memory not freed once TLS connection close means shm available memory decreasing for new connection that leads to the following error<br><b>tls: ssl bug #1491 workaround: not enough memory for safe operation<br><br></b></div><div><b>TestCase:<br></b></div>1. start kamailio<br></div>2. use sample program to establish tls connection and close imediately.<br></div>3. Kamailio Log is<br></div>    For first TLS connection<br>    tls [tls_server.c:189]: tls_complete_init(): tls: enough memory for safe operation: shm=63604096 threshold1=12058624<br>    tls [tls_server.c:649]: tls_h_tcpconn_clean(): tls shm_available after shm_free: 63545192<br><br>     For second TLS connection<br>     tls [tls_server.c:189]: tls_complete_init(): tls: enough memory for safe operation: shm=63545192 threshold1=12058624<br>     tls [tls_server.c:649]: tls_h_tcpconn_clean(): tls shm_available after shm_free: 63489352<br><b><br></b></div><b>Memory Leak:</b><br><div>for tls connection connection<br></div><div>63604096 - 63545192 = 58904 bytes not freed.<br><br><div>for tls connection connection<br></div>63545192 - 63489352 = 55840 bytes not freed.<br></div><div><br></div><div>I tested same scenario on kamailio - 4.2.4, 4.3.4 versions result is same.<br><br></div><div>Could you please provide the fix?<br></div><div><br></div><div>Thanks & Regards,<br></div><div>Raja Chegondi.<br></div></div>