Writing a tcp client using gen_tcp in gen_server, so after connecting successfully(using gen_tcp:connect) I am trying to send my tcp server out of reach(disconnecting network from tcp server) and expecting some event at my gen_server handle_info but I am not getting anything.
please help, how it can be achieved ?