chore: some code fixes

This commit is contained in:
Toby
2023-08-04 17:48:07 -07:00
parent 45c3fc54bd
commit 3b4af8035b
3 changed files with 13 additions and 12 deletions

View File

@@ -132,7 +132,7 @@ func (c *clientImpl) connect() error {
conn.SetCongestionControl(bbr.NewBBRSender(
bbr.DefaultClock{},
bbr.GetInitialPacketSize(conn.RemoteAddr()),
32*common.InitMaxDatagramSize,
bbr.InitialCongestionWindow*common.InitMaxDatagramSize,
bbr.DefaultBBRMaxCongestionWindow*common.InitMaxDatagramSize,
))
}