New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lost_pn can go negative #2611
Labels
Comments
I support this proposal, since the way we’re initializing largest_acked_packet is wrong: we’re initializing it to 0, although we decided that 0 is a valid packet number. |
ianswett
added a commit
that referenced
this issue
Apr 15, 2019
And 0 is a valid packet number, so defaulting largest_acked_packet to 0 is inherently incorrect. Fixes #2611
ianswett
added a commit
that referenced
this issue
Apr 15, 2019
And 0 is a valid packet number, so defaulting largest_acked_packet to 0 is inherently incorrect. Fixes #2611
This was referenced Apr 15, 2019
ianswett
added a commit
that referenced
this issue
Apr 19, 2019
* lost_pn can no longer be negative And 0 is a valid packet number, so defaulting largest_acked_packet to 0 is inherently incorrect. Fixes #2611 * Update draft-ietf-quic-recovery.md Marten's suggestion * Update draft-ietf-quic-recovery.md Don't subtract * Update draft-ietf-quic-recovery.md * Update draft-ietf-quic-recovery.md
Closed by #2621 |
I merged #2611 into a random local branch instead of head, so I'm reopening this. |
ianswett
added a commit
that referenced
this issue
Apr 24, 2019
Fixed version of #2611 which was inadvertently merged into a local branch.
ianswett
added a commit
that referenced
this issue
Apr 29, 2019
* Remove lost_pn and avoid integer underflow Fixed version of #2611 which was inadvertently merged into a local branch. * Update draft-ietf-quic-recovery.md * Update draft-ietf-quic-recovery.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in
DetectLostPackets
,lost_pn
is computed asHowever,
largest_acked_packet
is initialized to zeroand so the subtraction can cause
lost_pn
to go negative whenDetectLostPackets
is called before an ACK is received (since it will be updated only inOnAckReceived
).Suggest to initialize
largest_acked_packet
to infinity and to explicitly check for this case.The text was updated successfully, but these errors were encountered: