Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Discussion (https://www.gnutellaforums.com/general-discussion/)
-   -   Splitting download segments byte loss? (https://www.gnutellaforums.com/general-discussion/13076-splitting-download-segments-byte-loss.html)

HelgeB July 1st, 2002 07:57 AM

Splitting download segments byte loss?
 
Hello,

I noticed it only once and it's difficult to reproduce, so I'm asking here if anyone have noticed something similar.
I was watching the download window completing one of those 735M downloads, just one candidate was uploading the last segment:
[1] <m> bytes of <m> bytes complete.
[2] <x> bytes of <n> bytes downloading.
[3] <o> bytes of <o> bytes complete.
Then another host was connected (busy) so segment [2] was splitted:
[1] <m> bytes of <m> bytes complete.
[2] <x> bytes of <n-(n-x)/2> bytes downloading.
[4] 0 bytes of <(n-x)/2> bytes queued.
[3] <o> bytes of <o> bytes complete.
As the download of [4] never started the segments are joined just before <x> reaches the <n-(n-x)/2>-barrier:
[1] <m> bytes of <m> bytes complete.
[2] <x> bytes of <n-1> bytes downloading.
[3] <o> bytes of <o> bytes complete.

The downloaded file was corrupt, so where was the byte gone?

I think <x> was odd at the segment splitting point.
Maybe this is a division remainder bug. Or something else went wrong...

Helge

GregorK July 1st, 2002 01:04 PM

Ohh... good observation. Thanks....
I was able to reproduce it and integrate the fix in the already freezed code for the next release.
You will see the release and fix during the next days.

Gregor

HelgeB July 2nd, 2002 04:31 AM

Good reaction time. I'm quick in finding bugs but you're fixing bugs even more quickly!

Helge

GregorK July 3rd, 2002 07:35 AM

;-)
Thank you for reporting all the bugs and suggestions...
That always helps me and as you see I take every issue seriously and try to fix it quickly, if possible.

Gregor

HelgeB July 11th, 2002 04:08 AM

Addendum
 
I downloaded a file with a search results size 4333706 bytes.
Phex release_0_7_2 download completed size 4333699 bytes.
Phex 0_7_3 (unstable) download completed size 4333706 bytes.

Helge

GregorK July 11th, 2002 04:11 AM

Re: Addendum
 
Quote:

Originally posted by HelgeB
I downloaded a file with a search results size 4333706 bytes.
Phex release_0_7_2 download completed size 4333699 bytes.
Phex 0_7_3 (unstable) download completed size 4333706 bytes.

I hope I understand you right and you like to say: "It works now", or??? ;-)

Gregor

HelgeB July 11th, 2002 06:24 AM

Re: Re: Addendum
 
Quote:

Originally posted by GregorK

I hope I understand you right and you like to say: "It works now", or??? ;-)

Yes!

Oh, now you have released 0.7.3 so it's no longer "unstable" :-)

Helge


All times are GMT -7. The time now is 12:15 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.