From: Matt Joiner Date: Sat, 30 Jun 2018 11:10:23 +0000 (+1000) Subject: Assume connections have half the download bandwidth than calculated X-Git-Tag: v1.0.0~107 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=15f3c822c56665c01c1b5367c741dfc4d8be9383;p=btrtrc.git Assume connections have half the download bandwidth than calculated --- diff --git a/connection.go b/connection.go index 4195683e..6ff1835d 100644 --- a/connection.go +++ b/connection.go @@ -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,