From: Matt Joiner Date: Sun, 10 Oct 2021 01:02:29 +0000 (+1100) Subject: Extend nominal max requests upper bound to 2048 X-Git-Tag: v1.34.0^2~50 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4f87eed81a14d73efcf1753ca891bd9ffbbfed09;p=btrtrc.git Extend nominal max requests upper bound to 2048 --- diff --git a/peerconn.go b/peerconn.go index f0efb19d..902b53cc 100644 --- a/peerconn.go +++ b/peerconn.go @@ -466,7 +466,7 @@ func (cn *PeerConn) requestedMetadataPiece(index int) bool { // The actual value to use as the maximum outbound requests. func (cn *Peer) nominalMaxRequests() (ret maxRequests) { - return maxRequests(clamp(1, int64(cn.PeerMaxRequests), 128)) + return maxRequests(clamp(1, int64(cn.PeerMaxRequests), 2048)) } func (cn *Peer) totalExpectingTime() (ret time.Duration) {