how long to keep sockets in the state FIN-WAIT-2

$cat /proc/sys/net/ipv4/tcp_fin_timeout 60 $ The tcp_fin_timeout variable tells kernel how long to keep sockets in the state FIN-WAIT-2 if you were the one closing the socket. This is used if the other peer is broken for some reason and don’t close its side, or the other peer may even crash unexpectedly. Each socket left in …