Extend nominal max requests upper bound to 2048

This commit is contained in:
Matt Joiner 2021-10-10 12:02:29 +11:00
parent dfc421824c
commit 4f87eed81a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {