I've spent like 3 minutes looking for this information in eel -man {ssl,inet,gen_tcp} and found nothing about termination of controlling process. Was I looking not carefully enough or is it missing from docs?<span></span><br>
<br>On Monday, June 18, 2012, Ingela Andin  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
2012/6/15 Morgan Segalis <<a href="javascript:;" onclick="_e(event, 'cvml', 'msegalis@gmail.com')">msegalis@gmail.com</a>>:<br>
> A simple question really,<br>
><br>
> I have a gen_server that is handling my SSL connection…<br>
> Since now I just found out, that I did not closed the ssl connection handled by the gen_server when this one terminates…<br>
><br>
> Of course I have added the close, now…<br>
><br>
> But it got me curious, what would be the consequence if not explicitly closing the connection when the gen_server terminates ?<br>
> Does it still lives, or does it get closed by itself… ?<br>
><br>
<br>
If the process that controlls the ssl-socket terminates the<br>
ssl-connection process will terminate too. The controlling process is<br>
the process that started the ssl connection<br>
unless you  transfered the control by calling ssl:controlling_process/2.<br>
<br>
Regards Ingela Erlang/OTP team - Ericsson AB<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'erlang-questions@erlang.org')">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>