class Net::SSH::Connection::Keepalive

def should_send?

def should_send?
  return false unless enabled?
  return true unless @last_keepalive_sent_at
  Time.now - @last_keepalive_sent_at >= interval
end