Assume connections have half the download bandwidth than calculated

This commit is contained in:
Matt Joiner 2018-06-30 21:10:23 +10:00
parent b2117bc571
commit 15f3c822c5
1 changed files with 2 additions and 0 deletions

View File

@ -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,