From f5271808731e349acb340e3329d7e775cc1a3b58 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 15 Jun 2022 14:22:17 +1000 Subject: [PATCH] Bump up the local client reqq This seems to boost upload speeds to Transmission to 16MB/s. It may require a corresponding amount of buffering in memory, that could require work later. --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 28dbc8ed..e939b9d4 100644 --- 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) {