Skip to content

Commit

Permalink
quic: loss detection
Browse files Browse the repository at this point in the history
Implement the loss detection algorithm from RFC 9002, Section 6.

For golang/go#58547

Change-Id: I9bec21fc0ec1e48f0421f2c365fc17a1b8988b2f
Reviewed-on: https://go-review.googlesource.com/c/net/+/499641
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
  • Loading branch information
neild committed Jun 27, 2023
1 parent c8a2c5a commit 02fe9a5
Show file tree
Hide file tree
Showing 5 changed files with 2,067 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/quic/congestion_reno.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type ccReno struct {
// persistent congestion is declared.
//
// https://www.rfc-editor.org/rfc/rfc9002#section-7.6
persistentCongestion [3]struct {
persistentCongestion [numberSpaceCount]struct {
start time.Time // send time of first lost packet
end time.Time // send time of last lost packet
next packetNumber // one plus the number of the last lost packet
Expand Down
2 changes: 1 addition & 1 deletion internal/quic/congestion_reno_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ type ccTest struct {
rtt rttState
maxAckDelay time.Duration
now time.Time
nextNum [3]packetNumber
nextNum [numberSpaceCount]packetNumber
}

func newRenoTest(t *testing.T, maxDatagramSize int) *ccTest {
Expand Down
Loading

0 comments on commit 02fe9a5

Please sign in to comment.