mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-10 22:39:54 +00:00
chore: use just smoothed RTT in brutal CC
This commit is contained in:
parent
cf970f09e4
commit
9e521a7615
@ -59,7 +59,7 @@ func (b *BrutalSender) CanSend(bytesInFlight congestion.ByteCount) bool {
|
||||
}
|
||||
|
||||
func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount {
|
||||
rtt := maxDuration(b.rttStats.LatestRTT(), b.rttStats.SmoothedRTT())
|
||||
rtt := b.rttStats.SmoothedRTT()
|
||||
if rtt <= 0 {
|
||||
return 10240
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user