Assume connections have half the download bandwidth than calculated
This commit is contained in:
parent
b2117bc571
commit
15f3c822c5
|
@ -381,6 +381,8 @@ func (cn *connection) nominalMaxRequests() (ret int) {
|
|||
expectingTime := int64(cn.totalExpectingTime())
|
||||
if expectingTime == 0 {
|
||||
expectingTime = math.MaxInt64
|
||||
} else {
|
||||
expectingTime *= 2
|
||||
}
|
||||
return int(clamp(
|
||||
1,
|
||||
|
|
Loading…
Reference in New Issue