mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-16 09:19:51 +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 {
|
func (b *BrutalSender) GetCongestionWindow() congestion.ByteCount {
|
||||||
rtt := maxDuration(b.rttStats.LatestRTT(), b.rttStats.SmoothedRTT())
|
rtt := b.rttStats.SmoothedRTT()
|
||||||
if rtt <= 0 {
|
if rtt <= 0 {
|
||||||
return 10240
|
return 10240
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user