On Mon, 31 Oct 2005, A. S. Bradbury wrote:

I've recently started using rtorrent, and it's easily my favourite bittorrent
client. I was wondering whether you could shed any light on this error:

Caught exception: "core::DownloadStore::save(...) could not open file"

Attached is a patch that fixes the problem.

torrent download directory. Am I doing something wrong? I have my
max_open_files set to 512, 128 seemed a little small given that one of the
torrents I'm running has >20000 files. I'm running rtorrent 0.3.6 on gentoo.

With that many files, I don't think changing to 512 will help very much. It is still likely to have to open almost every file when mapping chunks to memory. You're likely to have 1 in 20 files already open, compared to 1 in 200.

Rakshasa

Wheat on black, lightly sprinkled with subdued colors; the color of code.
Index: src/core/download_store.cc
===================================================================
--- src/core/download_store.cc  (revision 559)
+++ src/core/download_store.cc  (working copy)
@@ -53,7 +53,7 @@
 DownloadStore::use(const std::string& path) {
   m_path = path;
 
-  if (*m_path.rbegin() != '/')
+  if (!m_path.empty() && *m_path.rbegin() != '/')
     m_path += '/';
 }
 
_______________________________________________
Libtorrent-devel mailing list
[email protected]
http://rakshasa.no/mailman/listinfo/libtorrent-devel

Reply via email to