merge develop into master #21

Merged
JakeHillion merged 149 commits from develop into master 2021-05-12 00:22:59 +01:00
Showing only changes of commit 1f98ff49ae - Show all commits

View File

@ -2,7 +2,6 @@ package congestion
import (
"context"
"fmt"
"github.com/stretchr/testify/assert"
"sort"
"testing"
@ -52,7 +51,6 @@ func (n *newRenoTest) Start(ctx context.Context) {
select {
case p := <-tp:
s := p.t.Add(n.halfRtt).Sub(time.Now())
fmt.Printf("delayed packet for %dms\n", s.Milliseconds())
time.Sleep(s)
cp <- p.p
case <-ctx.Done():
@ -84,7 +82,6 @@ func (n *newRenoTest) RunSideA(ctx context.Context) {
case <-ctx.Done():
return
case p := <-n.aInbound:
fmt.Printf("side A received: %d,%d,%d\n", p.seq, p.nack, p.ack)
n.sideA.ReceivedPacket(p.seq, p.nack, p.ack)
}
}
@ -119,7 +116,6 @@ func (n *newRenoTest) RunSideB(ctx context.Context) {
case <-ctx.Done():
return
case p := <-n.bInbound:
fmt.Printf("side B received: %d,%d,%d\n", p.seq, p.nack, p.ack)
n.sideB.ReceivedPacket(p.seq, p.nack, p.ack)
}
}