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

@@ -135,7 +135,7 @@ func (h *h3sHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.conn.SetCongestionControl(bbr.NewBBRSender(
bbr.DefaultClock{},
bbr.GetInitialPacketSize(h.conn.RemoteAddr()),
32*common.InitMaxDatagramSize,
bbr.InitialCongestionWindow*common.InitMaxDatagramSize,
bbr.DefaultBBRMaxCongestionWindow*common.InitMaxDatagramSize,
))
}