# File lib/net/ssh/transport/state.rb, line 186
    def needs_rekey?
      max_packets && packets > max_packets ||
      max_blocks && blocks > max_blocks
    end