Wed 10 May 2006 08:28:44 PM UTC, comment #5:
Some checking in files.ini seems to indicate that mlnet is confusing two different torrents. More below.
I'm also attaching a tet file with somewhat more complete snippets of the same stuff as here.
The patch gives this output:
---8<---
-su-2.05b# ./mlnet.2.7.5.dbg
2006/05/10 21:36:53 Starting MLDonkey 2.7.5 ...
2006/05/10 21:36:53 Language EN, locale ASCII, ulimit for open files 3636
2006/05/10 21:36:53 MLDonkey is working in .
2006/05/10 21:36:53 [DNS] Resolving [boomer.truls.org] ...
2006/05/10 21:36:54 [DNS] Resolving http://www.mldonkey.net ...
2006/05/10 21:36:58 [IPblock] loading guarding.p2p
2006/05/10 21:37:06 [IPblock] 115067 ranges loaded - optimized to 100848
2006/05/10 21:37:06 [cUd] converting 3 users to new format
2006/05/10 21:37:06 Updating options to version 10
2006/05/10 21:37:06 Updating options to version 11
2006/05/10 21:37:07 [cSw2] file_size for ./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ does not match: swarmer 54143112 / real 58866719
---8<---
Checking BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ in "files.ini" I find the following (snipped here):
---8<---
swarmers = [
[...]
{ file_size = 54143112
file_name = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
file_bitmap = "333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
file_chunk_sizes = [
262144;]
};
[...]
files = [
{ file_network = BitTorrent
file_size = 54143112
file_priority = 0
file_state = Downloading
file_filename = "Dag Vag - Almanacka (1983)"
file_age = 147002461
file_primary = true
file_swarmer = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
file_mtime = 1147102580.
file_chunks = "333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
file_present_chunks = [
(0, 41156608);
(41418752, 54143112)]
file_downloaded = 53880968
[...]
file_temp = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
file_piece_size = 262144
file_name = "Dag Vag - Almanacka (1983)"
file_uploaded = 27230208
file_id = X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ
file_trackers = [
"http://tracker.prq.to/announce";]
---8<---
Adding togetrehr the size of all individual files in the entry above gives 54143112 wich corresponds exactly with "file_size".
When comparing the files in the directory "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ" the only difference is that in the directory the file "09 - Dimma.mp3" is only 1290530 bytes.
Adding together the size of all files in the directory gives 53992068 bytes, wich coresponds exactly with "file_downloaded" in "files.ini".
Trying to find "58866719" (from the error message at the top) in "files.ini" I find an entry for another torrent with the same filename ("Dag Vag - Almanacka (1983)") and almost the same content, but with a different ID and temp dir.
For some reason the second entry has the same "file_swarmer" as the first even though the "file_id" and "file_temp" are different.
Some snippets from that files entries in "files.ini":
---8<---
swarmers = [
{ file_size = 58866719
file_name = "./temp/BT-CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH"
file_bitmap = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
file_chunk_sizes = [
262144;]
};
[...]
files = [
{ file_network = BitTorrent
file_size = 54143112
file_priority = 0
file_state = Downloading
file_filename = "Dag Vag - Almanacka (1983)"
file_age = 147002461
file_primary = true
file_swarmer = "./temp/BT-X34OR7VZKJDR3SL2QXT2BN2H2VXW4VYZ"
file_mtime = 1147102580.
file_chunks = "333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333303333333333333333333333333333333333333333333333333"
file_present_chunks = [
(0, 41156608);
(41418752, 54143112)]
file_downloaded = 53880968
[...]
file_temp = "./temp/BT-CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH"
file_piece_size = 262144
file_name = "Dag Vag - Almanacka (1983)"
file_uploaded = 0
file_id = CNJUFHE26BBFTAG3Y4CBWHMDF6AHTCMH
file_trackers = [
"http://tracker.prq.to/announce";]
---8<---
|