From 0be5e8deef000e475c6e40a57a69b149075db558 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 10 Feb 2013 23:21:58 +0000 Subject: [PATCH] (libT) #5291 'increase scrape buffer sizes to accomodate for multiscrape': done with patch by reardon --- libtransmission/web.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/web.c b/libtransmission/web.c index 920b4e898..69d62d824 100644 --- a/libtransmission/web.c +++ b/libtransmission/web.c @@ -129,8 +129,8 @@ sockoptfunction (void * vtask, curl_socket_t fd, curlsocktype purpose UNUSED) /* announce and scrape requests have tiny payloads. */ if (isScrape || isAnnounce) { - const int sndbuf = 1024; - const int rcvbuf = isScrape ? 2048 : 3072; + const int sndbuf = isScrape ? 4096 : 1024; + const int rcvbuf = isScrape ? 4096 : 3072; setsockopt (fd, SOL_SOCKET, SO_SNDBUF, &sndbuf, sizeof (sndbuf)); setsockopt (fd, SOL_SOCKET, SO_RCVBUF, &rcvbuf, sizeof (rcvbuf)); } -- 2.40.0