From e8a8fc7e1a2db5955570ee61e8b8ff6f3f8cad70 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 8 Jul 2006 22:04:12 +0000 Subject: [PATCH] * Minor fixes before release. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@740 e378c898-3ddf-0310-93e7-cc216c733640 --- Makefile.am | 1 + src/core/download_factory.cc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index d269f251..65fc633e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ EXTRA_DIST= \ rak/partial_queue.h \ rak/priority_queue.h \ rak/priority_queue_default.h \ + rak/ranges.h \ rak/regex.h \ rak/socket_address.h \ rak/string_manip.h \ diff --git a/src/core/download_factory.cc b/src/core/download_factory.cc index 62460286..c5bbf17f 100644 --- a/src/core/download_factory.cc +++ b/src/core/download_factory.cc @@ -184,6 +184,9 @@ DownloadFactory::receive_success() { if (!control->variable()->get_value("max_chunks_queued") != 0) download->variable()->set("max_chunks_queued", control->variable()->get("max_chunks_queued")); + else + // Temporary until we fix the library. + download->variable()->set("max_chunks_queued", (512 << 20) / download->download()->chunks_size()); if (!control->variable()->get_value("use_udp_trackers")) download->enable_udp_trackers(false);