Extend nominal max requests upper bound to 2048
This commit is contained in:
parent
dfc421824c
commit
4f87eed81a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue