X-Git-Url: https://git.mxchange.org/?p=quix0rs-apt-p2p.git;a=blobdiff_plain;f=TODO;h=c4920231012c317d78831cf09c89482ef6db2c2a;hp=72f93931b6dc9560ebdd1da2a5f2e30f6ef9c37c;hb=8c18aac4790e10c1126108ab4b71b19e148045db;hpb=458fed367aab6b449d6a59d992fa164f7cc6579d diff --git a/TODO b/TODO index 72f9393..c492023 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,11 @@ +Consider what happens when multiple requests for a file are received. + +When another request comes in for a file already being downloaded, +the new request should wait for the old one to finish. This should +also be done for multiple requests for peer downloads of files with +the same hash. + + Packages.diff files need to be considered. The Packages.diff/Index files contain hashes of Packages.diff/rred.gz @@ -22,6 +30,14 @@ and not the headers, and also misses the requests for downloads sent to other peers. +Rehash changed files instead of removing them. + +When the modification time of a file changes but the size does not, +the file could be rehased to verify it is the same instead of +automatically removing it. The DB would have to be modified to return +deferred's for a lot of its functions. + + Consider storing deltas of packages. Instead of downloading full package files when a previous version of