<div dir="ltr">Hi all<div><br></div><div>I have been experiencing the strangest thing.</div><div><br></div><div>I am using an application (gen_rpc) that internally uses a gen_server to manage a gen_tcp outgoing socket.</div><div><br></div><div>On closing of the socket form the server side, the message {tcp_closed, Socket} is received in the handle_info. This handle_info returns {stop, normal, State}</div><div>BUT</div><div>The gen_server does not actually terminate. It does not call terminate and the PID remains registered locally. It actually keeps on processing messages which leads to badtcp reponses when it tires to send on the failed socket.</div><div><br></div><div>Has any one seen something remotely like this, or have any suggestions of how to proceed?</div><div><br></div><div>Links</div><div><a href="https://github.com/priestjim/gen_rpc">https://github.com/priestjim/gen_rpc</a><br></div><div><br></div><div><br></div><div><br></div></div>