[erlang-questions] ssl_closed not always received

Khitai Pang khitai.pang@REDACTED
Sun Apr 10 23:34:25 CEST 2016


My erlang server process is a gen_server, it depends on ssl_closed, when 
it receives ssl_closed, it should terminate immediately.

My erlang client process is also a gen_server running on a remote host, 
it has ssl:close(Socket) in terminate().  It connects to the server 
process and establishes a ssl connection.  When I quit the entire erlang 
vm where my erlang client process runs, sometimes the server process 
receives ssl_closed, sometimes it doesn't.

Why?

How to make sure that the server process always get ssl_closed when the 
client process on a remote host quits?


Thanks
Khitai



More information about the erlang-questions mailing list