[erlang-questions] Peername of a closed TCP socket
Tue May 26 17:39:46 CEST 2009
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?
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
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions