[erlang-questions] What are the consequences of not closing the SSL connection ?

Ingela Andin ingela@REDACTED
Mon Jun 18 21:17:33 CEST 2012


2012/6/15 Morgan Segalis <msegalis@REDACTED>:
> A simple question really,
> I have a gen_server that is handling my SSL connection…
> Since now I just found out, that I did not closed the ssl connection handled by the gen_server when this one terminates…
> Of course I have added the close, now…
> But it got me curious, what would be the consequence if not explicitly closing the connection when the gen_server terminates ?
> Does it still lives, or does it get closed by itself… ?

If the process that controlls the ssl-socket terminates the
ssl-connection process will terminate too. The controlling process is
the process that started the ssl connection
unless you  transfered the control by calling ssl:controlling_process/2.

Regards Ingela Erlang/OTP team - Ericsson AB

More information about the erlang-questions mailing list