commit | 3f563d3b0dee482b8cc70bae68346d9a6d4609a6 | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Wed Apr 09 15:42:46 2025 -0700 |
committer | Gopher Robot <gobot@golang.org> | Wed Apr 09 16:02:25 2025 -0700 |
tree | d7aae742b463444da7f05f7cbe29ffadf6e721e9 | |
parent | a3b6e772dc0acbd9c55a9e62524a4c389bed0d69 [diff] |
quic: use an enum for sentPacket state The sentPacket type tracks the state of a packet sent to the peer. Packets can be in progress, acknowledged, or lost. Track this state with an enum rather than a set of bools, to avoid the possibility of nonsensical states such as a packet being both acknowledged and lost. This also simplifies a following change to add an "unsent" state for intentionally skipped packet numbers. Change-Id: I87c8fc399c72337c033ab7ec5ec8db2c56c732f9 Reviewed-on: https://go-review.googlesource.com/c/net/+/664297 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Auto-Submit: Damien Neil <dneil@google.com>
This repository holds supplementary Go networking packages.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/net.
The main issue tracker for the net repository is located at https://go.dev/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.