Sometimes server has $TMOUT and it will invalidate the existing keep-alive methods. Sending custom strings is a solution. Like Xshell 