From 4f87eed81a14d73efcf1753ca891bd9ffbbfed09 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 10 Oct 2021 12:02:29 +1100 Subject: [PATCH] Extend nominal max requests upper bound to 2048 --- peerconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.48.1