aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Include file name in "Expected part-hash ..." messages  (Read 2600 times)

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Include file name in "Expected part-hash ..." messages
« on: November 06, 2005, 10:08:55 PM »

I think it would be really helpful to include the corresponding file name in the "Expected part-hash ..." messages in the log. The way the setup is now, you just get a ton of these Expected/Actual part-hash messages and it's very tedious to figure out to which files they belong.

Since the messages always come in pairs, it's probably sufficient to only include the file name in the "Expected..." message and not the "Actual..." message. Plus, for long file names this would introduce less clutter.

So the messages could look something like this:
Code: [Select]
2005-11-06 13:39:08: Expected part-hash: ABCABCABCABCABCABCABCABCABCABCAB (File.I.am.downloading.zip)
2005-11-06 13:39:08: Actual part-hash: DFEDFEDFEDFEDFEDFEDSFEDFEDFEDFED
Logged
Current aMule CVS builds for OS X can be found here.

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Include file name in "Expected part-hash ..." messages
« Reply #1 on: November 07, 2005, 04:18:30 PM »

It shouldn't even be shown unless CPartFile-debugmsgs are enabled.
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Include file name in "Expected part-hash ..." messages
« Reply #2 on: November 09, 2005, 07:49:42 AM »

I didn't realize this. But don't you think it would be informative to the user to have these messages? The "Downloaded part xx is corrupt in file: SomeFile.zip" messages show up rather rarely, so I feel like the user is not getting a good idea about the amount of corruption that is encountered. Plus, if you are trying to identify the culprits for banning them in your firewall, the frequent part hash messages are much more helpful (once you figured out to which file they belong) than the occasional "Downloaded part ..." messages.
Logged
Current aMule CVS builds for OS X can be found here.

spiorf

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 73
Re: Include file name in "Expected part-hash ..." messages
« Reply #3 on: November 09, 2005, 12:57:10 PM »

Quote
you just get a ton of these Expected/Actual part-hash messages

but those messages don't give you an idea about the amount of corruption, because if you get a wrong bit at the end of a chunk (about 9 MB), those messages will pop up until you redownload almost  the whole chunk. You can see exactly how AICH works here http://www.amule.org/wiki/index.php/AICH
And if you need to know the file name of an hash, you can use http://stats.razorback2.com/

Quote
The "Downloaded part xx is corrupt in file: SomeFile.zip" messages show up rather rarely,
I think it is a GOOD thing, this is the message that can show you the real amount of corruption you get.
Logged
Alcohol, the cause of, and solution to, all of lifes problems...