<font face="courier new, monospace">Hello Folks,</font><div><font face="courier new, monospace">This might be a simple question, but I would like to know how erlang gen_server gets the async message "tcp_close" when the server to which the gen_server has made connections to has crashed. (Ofcourse I am talking about non blocking sockets here)</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">From what I know (after googling too) is that it takes atleast one send on the connection to get to know if the connection has been reset, in which we case we get the error ECONNRESET.</font></div>
<div><br></div><div><font face="courier new, monospace">But in case of my gen_server, it got the message "tcp_close" as soon as I brought down the server (kill -9) (Note that gen_server was not sending any data to the server).</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Can anybody shed some light on it ?</font></div><div><br></div><div><br clear="all">Thanks.
</div>