Subject: [quicwg/base-drafts] 290a51: Split PTO calculation into a dedicated method

From: ianswett <[email-masked]>
Date: Wed, 20 May 2020 09:00:23 -0700

Branch: refs/heads/ianswett-split-pto-pseudocode
  Home:   https://github.com/quicwg/base-drafts
  Commit: 290a5113d74c36b112d3ada80edc2f3ede23325b
      https://github.com/quicwg/base-drafts/commit/290a5113d74c36b112d3ada80edc2f3ede23325b
  Author: ianswett <[email-masked]>
  Date:   2020-05-20 (Wed, 20 May 2020)

  Changed paths:
    M draft-ietf-quic-recovery.md

  Log Message:
  -----------
  Split PTO calculation into a dedicated method

As @martinthomson pointed out in #3666, it was far too complex and error-prone as-is.

Als fixes #3564 and #3674 by calculating the PTO timeout for each PN space and picking the earliest, as well as checking that there are inflight packets before calculating PTO for a PN space.