[sr-dev] When/why are OpenSSL objects free'd in a different process?

Anthony Alba ascanio.alba7 at gmail.com
Tue Feb 9 14:24:43 CET 2021


Hi Daniel and kamailio devs,

I am curious about when/why TLS objects are free'd especially by
another (worker?) process instead of the routing process.

Here we see TLS happening in PID 18722
8(18722) DEBUG: tls [tls_server.c:199]: tls_complete_init():
completing tls connection initialization

Later we see
9(18723) DEBUG: tls [tls_server.c:684]: tls_h_tcpconn_close_f():
Closing SSL connection 0x7f4ef9732080

1. Is 9(PID 18723) a kind of "garbage collection" process that cleans
up for the children?
2. How does 8 signal 9 that the connection is no longer used and
should be cleaned up?

Cheers
Anthony



More information about the sr-dev mailing list