[core-dev] Percent of upload

Eugene Romanenko <[email protected]> Mon, 10 Jan 2005 22:06:44 +0200
Newsgroups gmane.network.gnutella.limewire.core.devel
Message-ID <[email protected]>
Hello,

Today I watch for upload process of a big file, and found that LimeWire 
can't determine upload percent. Every time when peer download next part 
of file percent count starts from zero. So, I can't determine amount of 
bytes which peer downloaded. And can't estimate amount of time needed 
for upload completion.

But how we can determine which amount of data peer needs to complete 
download? We can't rely on IP, peer can download part of file under one 
IP, then drop connection, reconnect and continue download with other IP. 
We can't rely on some kind of UID, as peer can download part of file 
from one source and then continue from another.

Solution - when peer requests file, it sets additional header field 
which contain amount of bytes already downloaded. Then uploader adds 
this amount to current upload and shows right percent. And user can see 
estimated completion time. If header field not set, uploader counts byte 
amount from zero (as it present for now). If peer download from multiple 
hosts simultaneously, percent value may be not accurate but still usable.

If you find my proposal good, I can try implement it.


-- 
Bye,
Eugene.    http://eros2.by.ru
_______________________________________________
core-dev mailing list
[email protected]
http://www.limewire.org/mailman/listinfo/core-dev