Tcp socket keepalive linux. For example: $ ss --tcp state CLOSE-WAIT --kill 3.