]> git.kaiwu.me - nginx.git/commit
QUIC: fixed ACK Ranges processing.
authorSergey Kandaurov <pluknet@nginx.com>
Fri, 7 Aug 2020 09:34:15 +0000 (12:34 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Fri, 7 Aug 2020 09:34:15 +0000 (12:34 +0300)
commite4ca695700b996f1347662a2666881fdc09ea703
tree6f66f598ada1d1b746a1da30c0f2391d5815e90e
parent7d1a1fb6de71ba0ad7ac324a6c43a10a0f5d8ae6
QUIC: fixed ACK Ranges processing.

According to quic-transport draft 29, section 19.3.1:

   The value of the Gap field establishes the largest packet number
   value for the subsequent ACK Range using the following formula:

      largest = previous_smallest - gap - 2

   Thus, given a largest packet number for the range, the smallest value
   is determined by the formula:

      smallest = largest - ack_range

While here, changed min/max to uint64_t for consistency.
src/event/ngx_event_quic.c