We try to send a heartbeat every send_every. If we don't get a heartbeat for timeout, kill the connection. timeout is checked every time a heartbeat is sent.
send_every
timeout