Hello,<br><br>When a TCP client disconnects very soon after connecting to an Erlang server, is there any reliable way of getting the client's remote address?<br><br>The inet:peername/1 function returns an error if the socket in question has closed. As a result, I can't find any better solution than to refactor the code so that inet:peername/1 is called as soon as possible after the gen_tcp:accept/1.<br>
<br>Thanks in advance,<br><br>malcolm<br>