Suppose you have an Erlang process which is handling a socket (gen_tcp/ssl) and the peer closes the connection.
How long does it take before the process receives a message like:
{tcp_closed, Socket}
or
{ssl_closed, Socket}
Is this amount of time specified somewhere in Erlang code or is it related to the system?
It should take one ping time of the network, unless congestion is present.