how long before a process receives a socket closed message
Pregunta
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?
Solución
It should take one ping time of the network, unless congestion is present.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow