]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client.go
Bump up the local client reqq
[btrtrc.git] / client.go
index 28dbc8ed4466853a9be6abcc76276beab6d1ba3e..e939b9d41f5a66b9d265c32c3ae1f8e2591e6255 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1020,7 +1020,7 @@ func (c *Peer) updateRequestsTimerFunc() {
 // Maximum pending requests we allow peers to send us. If peer requests are buffered on read, this
 // instructs the amount of memory that might be used to cache pending writes. Assuming 512KiB
 // (1<<19) cached for sending, for 16KiB (1<<14) chunks.
-const localClientReqq = 1 << 5
+const localClientReqq = 1024
 
 // See the order given in Transmission's tr_peerMsgsNew.
 func (cl *Client) sendInitialMessages(conn *PeerConn, torrent *Torrent) {