]> granicus.if.org Git - transmission/commitdiff
(libT) #5291 'increase scrape buffer sizes to accomodate for multiscrape': done with...
authorJordan Lee <jordan@transmissionbt.com>
Sun, 10 Feb 2013 23:21:58 +0000 (23:21 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Sun, 10 Feb 2013 23:21:58 +0000 (23:21 +0000)
libtransmission/web.c

index 920b4e8984388b641ec86867c4ab77f8fd4b6bfd..69d62d824a4e76848a8ad42a55706b2acfd124a2 100644 (file)
@@ -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));
     }