From: Greg F. <li...@gr...> - 2002-09-24 15:07:11
|
Ack, meant to send this to the list as well ;o) Greg ---------- Forwarded Message ---------- Subject: Re: [Gtk-gnutella-devel] Re: Swarming still isn't working correctly Date: Mon, 23 Sep 2002 14:56:30 -0700 From: Greg Fortune <li...@gr...> To: Rap...@po... (Raphael Manfredi) On Monday 23 September 2002 12:05 pm, you wrote: > Quoting li...@gr... from ml.softs.gtk-gnutella.devel: > :The SHA hash from the filter during the download..... > :some_file - ZIR56AHFSFO2TA3QWFUPOTYU7IWA6OH7 > : > : > :After the download finishes > :[gfortune@localhost downloading]$ ./null_count.py ../done/some_file.mpg > :File: some_file.mpg > :Size: 310139304 B 302870.41 KB 295.77 MB > :Null Bytes: 11905620 B 11626.58 KB 11.35 MB > :[gfortune@localhost downloading]$ sha1sum ../done/some_file.mpg > :ca23df00e5915da98370b168f74f14fa2c0f38ff ../done/some_file.mpg > :[gfortune@localhost downloading]$ > : > :Odd, 11.35 MB of null bytes. But even more odd, the SHA hash doesn't > :match... > > I don't know about the NUL bytes, but you're comparing a SHA1 in base32 > with a SHA1 in hexadecimal! Of course they can't match. ack, my bad :) I finally got all the perl stuff installed I need to run that script and it spits out the same hash on the finished file. Looks like all the nulls were not caused by the swarming code... > Use this script to compute the SHA1: > > http://www.chram.org/scripts/sha1sum > > Are you counting just the NUL bytes, or *consecutive* NUL bytes? Part of my last message that you snipped said that I found chunks of 500 bytes and upwards containing null characters. That may not seem like many bytes, but that's a huge chunk considering this is mpg compressed video. The 11 MB number is a total. Looks like this is most likely due to someone running a faulty encoder rather than a problem with swarming. Sorry for my paranoia :) Greg ------------------------------------------------------- |