Registered Member
|
In case of downloading a torent with single file - the link file 'cache' is created in the temp dir.
But it is created only if the destination torrent file doesn't exist. See void SingleFileCache::create(); This is OK, but if this cache file doesn't exist nothig is happened - no error message or any indication that it is a problem. Instead of this ktorrent show me that the file is downloading correctly I don't know what does - throw Error(i18n("Cannot open cache file : %1").arg(fptr.errorString())); but it seems that it's nothing. It seems that and in case of failure writing nothing happens. For example if the destination partition is full ktorront will continue to operate normaly. OK, this is just a guess but the result from fptr.write is not checked. |
Moderator
|
I changed that yesterday, we now check the result and an error gets thrown. But it doesn't get caught properly yet, I still have to make it stop the download.
You mean when somebody for example deletes the file the cache symlink is pointing to ? |
Registered Member
|
I mean if someone delete the symlink cache file in temp dir or in general if this file doesn't exist. Example: 1. I start downloading "torrent_file1.torrent" this file contain only one file - for example "test_file.rar" 2. I select to save this download in "\downloads\" 3. If "test_file.rar" exists as a file in "\downloads\" ktorrent doesn't create a symlink. The size of "test_file.rar" is 0 4. As result there is no symlink "cache" file in temp dir. 5. Even there is no symlink in temp dir ktorrent doesn't display an error message or something. 6. The size of "test_file.rar" is still 0, but ktorrent show me that I'm already downloaded several megabytes. |
Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]