]> git.mxchange.org Git - quix0rs-apt-p2p.git/log
quix0rs-apt-p2p.git
16 years agoRemove the duplicate error logging from the knode module.
Cameron Dale [Thu, 20 Mar 2008 22:26:41 +0000 (15:26 -0700)]
Remove the duplicate error logging from the knode module.

16 years agoRemove the unused steveholt entry from the bootstrap list.
Cameron Dale [Thu, 20 Mar 2008 22:12:29 +0000 (15:12 -0700)]
Remove the unused steveholt entry from the bootstrap list.

16 years agoFix some bugs in the pinging and ID checking.
Cameron Dale [Thu, 20 Mar 2008 22:09:29 +0000 (15:09 -0700)]
Fix some bugs in the pinging and ID checking.

Raise an exception if the node's ID has changed. This means the node's
returned results will be ignored.

The KTable replaceStaleNode now adds the new node if there's space even
if the old one isn't found. This is due to the node ID having changed
resulting in instantly removing the node from the routing table.

The handler for the ping result in insertNode was mistakenly taking the
Failure returned as a result as a node and passing it to replaceStaleNode.

16 years agoMove the HTML stats page generation for the DHT into the stats module.
Cameron Dale [Mon, 17 Mar 2008 23:43:30 +0000 (16:43 -0700)]
Move the HTML stats page generation for the DHT into the stats module.

16 years agoRename the knode functions to match the krpc method names.
Cameron Dale [Mon, 17 Mar 2008 22:27:56 +0000 (15:27 -0700)]
Rename the knode functions to match the krpc method names.

16 years agoAdded the number of times each action was started to the DHT stats.
Cameron Dale [Mon, 17 Mar 2008 22:21:26 +0000 (15:21 -0700)]
Added the number of times each action was started to the DHT stats.

16 years agoAdd bytes/sec to the DHT stats.
Cameron Dale [Mon, 17 Mar 2008 21:07:59 +0000 (14:07 -0700)]
Add bytes/sec to the DHT stats.

16 years agoDisplay DHT statistics to the HTTP user.
Cameron Dale [Fri, 14 Mar 2008 23:40:05 +0000 (16:40 -0700)]
Display DHT statistics to the HTTP user.

Adds 2 new interfaces to the DHT implementation:
 * DHTStats: DHT that supports gathering statistics
 * DHTStatsFactory: DHT that supports creating it's own HTTP server
apt_dht_Khashmir supports IDHTStats and formats stats for HTML.
apt_dht_Khashmir also supports IDHTStatsFactory if twisted.web2 is found.
Main script passes the DHT class to the main program.
Main script (DHT only) starts the stats factory if the DHT supports it.
Main program retrieves statistics from the DHT when asked by the HTTPServer.

16 years agoStart using the new DHT stats module (untested).
Cameron Dale [Wed, 12 Mar 2008 06:40:09 +0000 (23:40 -0700)]
Start using the new DHT stats module (untested).

16 years agoAdd the new stats module to the DHT.
Cameron Dale [Wed, 12 Mar 2008 06:39:29 +0000 (23:39 -0700)]
Add the new stats module to the DHT.

16 years agoFix minor bugs in the use of sha module and misspelled b2a_hex.
Cameron Dale [Tue, 11 Mar 2008 18:40:43 +0000 (11:40 -0700)]
Fix minor bugs in the use of sha module and misspelled b2a_hex.

16 years agoFixed justSeenNode in KTable to update the bucket properly.
Cameron Dale [Sat, 8 Mar 2008 03:56:17 +0000 (19:56 -0800)]
Fixed justSeenNode in KTable to update the bucket properly.

It now moves the seen node to the end and marks the bucket as
having been updated.

16 years agoAnother TODO item.
Cameron Dale [Sat, 8 Mar 2008 00:38:33 +0000 (16:38 -0800)]
Another TODO item.

16 years agoDon't use the tables findNodes when you can just bisect for it.
Cameron Dale [Sat, 8 Mar 2008 00:37:10 +0000 (16:37 -0800)]
Don't use the tables findNodes when you can just bisect for it.

16 years agoAdd new node to table when refreshing old node.
Cameron Dale [Sat, 8 Mar 2008 00:06:57 +0000 (16:06 -0800)]
Add new node to table when refreshing old node.

Fixes a bug introduced by commit:

    6ce38471: fix peer update problem connection refused in store value

16 years agoRename all apt-dht files to apt-p2p.
Cameron Dale [Thu, 6 Mar 2008 00:17:03 +0000 (16:17 -0800)]
Rename all apt-dht files to apt-p2p.

16 years agoRename project to apt-p2p.
Cameron Dale [Thu, 6 Mar 2008 00:10:07 +0000 (16:10 -0800)]
Rename project to apt-p2p.

16 years agoMerge branch 'documentation' into apt-dht
Cameron Dale [Wed, 5 Mar 2008 23:06:44 +0000 (15:06 -0800)]
Merge branch 'documentation' into apt-dht

16 years agoVarious documentation fixes and additions.
Cameron Dale [Wed, 5 Mar 2008 23:04:50 +0000 (15:04 -0800)]
Various documentation fixes and additions.

16 years agoDocument the DHT package.
Cameron Dale [Wed, 5 Mar 2008 23:03:33 +0000 (15:03 -0800)]
Document the DHT package.

16 years agoDocument the DHT's main khashmir module.
Cameron Dale [Wed, 5 Mar 2008 23:03:11 +0000 (15:03 -0800)]
Document the DHT's main khashmir module.

16 years agoDocument the DHT's krpc module.
Cameron Dale [Wed, 5 Mar 2008 23:02:44 +0000 (15:02 -0800)]
Document the DHT's krpc module.

16 years agoMerge branch 'apt-dht' of ssh://git.camrdale.org/git/apt-dht into apt-dht
Cameron Dale [Wed, 5 Mar 2008 00:05:22 +0000 (16:05 -0800)]
Merge branch 'apt-dht' of ssh://git.camrdale.org/git/apt-dht into apt-dht

16 years agoMore todo items.
Cameron Dale [Wed, 5 Mar 2008 00:04:40 +0000 (16:04 -0800)]
More todo items.

16 years agoDocument the DHT's util module.
Cameron Dale [Wed, 5 Mar 2008 00:04:12 +0000 (16:04 -0800)]
Document the DHT's util module.

16 years agoDocument the DHT's node module.
Cameron Dale [Wed, 5 Mar 2008 00:03:58 +0000 (16:03 -0800)]
Document the DHT's node module.

16 years agoDocument the DHT's ktable module.
Cameron Dale [Wed, 5 Mar 2008 00:03:45 +0000 (16:03 -0800)]
Document the DHT's ktable module.

16 years agoDocument the DHT's knode module.
Cameron Dale [Wed, 5 Mar 2008 00:03:28 +0000 (16:03 -0800)]
Document the DHT's knode module.

16 years agoDocument the DHT's khash module.
Cameron Dale [Wed, 5 Mar 2008 00:03:16 +0000 (16:03 -0800)]
Document the DHT's khash module.

16 years agoDocument the DHT's db module.
Cameron Dale [Wed, 5 Mar 2008 00:02:58 +0000 (16:02 -0800)]
Document the DHT's db module.

16 years agoDocument the DHT's actions module.
Cameron Dale [Wed, 5 Mar 2008 00:02:43 +0000 (16:02 -0800)]
Document the DHT's actions module.

16 years agoDocument the DHT's DHT module.
Cameron Dale [Wed, 5 Mar 2008 00:02:27 +0000 (16:02 -0800)]
Document the DHT's DHT module.

16 years agoAdd cleanup to the MirrorManager for the AptPackages.
Cameron Dale [Sun, 2 Mar 2008 20:40:17 +0000 (12:40 -0800)]
Add cleanup to the MirrorManager for the AptPackages.

16 years agoFix a minor error in the DB's storeFile function.
Cameron Dale [Sun, 2 Mar 2008 20:26:16 +0000 (12:26 -0800)]
Fix a minor error in the DB's storeFile function.

16 years agoA few more documentation fixes.
Cameron Dale [Sat, 1 Mar 2008 02:46:06 +0000 (18:46 -0800)]
A few more documentation fixes.

16 years agoDocumented the util module.
Cameron Dale [Sat, 1 Mar 2008 02:44:56 +0000 (18:44 -0800)]
Documented the util module.

16 years agoDocumented the db module.
Cameron Dale [Sat, 1 Mar 2008 02:44:40 +0000 (18:44 -0800)]
Documented the db module.

16 years agoDocumented the PeerManager module.
Cameron Dale [Sat, 1 Mar 2008 02:44:23 +0000 (18:44 -0800)]
Documented the PeerManager module.

16 years agoDocumented the Hash module.
Cameron Dale [Sat, 1 Mar 2008 02:43:58 +0000 (18:43 -0800)]
Documented the Hash module.

16 years agoDocumented the HTTPServer module.
Cameron Dale [Sat, 1 Mar 2008 02:43:41 +0000 (18:43 -0800)]
Documented the HTTPServer module.

16 years agoDocumented the HTTPDownloader module.
Cameron Dale [Sat, 1 Mar 2008 02:43:12 +0000 (18:43 -0800)]
Documented the HTTPDownloader module.

16 years agoDocument the MirrorManager module.
Cameron Dale [Fri, 29 Feb 2008 23:40:29 +0000 (15:40 -0800)]
Document the MirrorManager module.

16 years agoDocument the AptPackages module.
Cameron Dale [Fri, 29 Feb 2008 23:40:11 +0000 (15:40 -0800)]
Document the AptPackages module.

16 years agoDocument the apt_dht module.
Cameron Dale [Fri, 29 Feb 2008 21:42:44 +0000 (13:42 -0800)]
Document the apt_dht module.

16 years agoDocument the apt_dht_conf module.
Cameron Dale [Fri, 29 Feb 2008 21:42:28 +0000 (13:42 -0800)]
Document the apt_dht_conf module.

16 years agoDocument the apt_dht module's __init__ file.
Cameron Dale [Fri, 29 Feb 2008 21:41:50 +0000 (13:41 -0800)]
Document the apt_dht module's __init__ file.

16 years agoMove the normalization of key lengths from the HashObject to the DHT.
Cameron Dale [Fri, 29 Feb 2008 21:10:46 +0000 (13:10 -0800)]
Move the normalization of key lengths from the HashObject to the DHT.

16 years agoAdd property tracking to downloads from peers.
Cameron Dale [Fri, 29 Feb 2008 04:54:45 +0000 (20:54 -0800)]
Add property tracking to downloads from peers.

16 years agoHTTPServer responds correctly to requests for torrent strings.
Cameron Dale [Fri, 29 Feb 2008 00:50:10 +0000 (16:50 -0800)]
HTTPServer responds correctly to requests for torrent strings.

16 years agoUpgrade policies to SVN version and fix a small bug.
Cameron Dale [Fri, 29 Feb 2008 00:17:22 +0000 (16:17 -0800)]
Upgrade policies to SVN version and fix a small bug.

Fixed the policies usage when writeLimit was None to not do anything.

16 years agoStore piece hashes in the DB.
Cameron Dale [Wed, 27 Feb 2008 23:58:05 +0000 (15:58 -0800)]
Store piece hashes in the DB.

Also broke up single table into files and hashes.
Main code uses the new hash routine.
lookupHash now checks for torrent string hashes.
The HTTPServer still needs to interpret torrent string hashes.

16 years agoAdd appropriate piece strings to the DHT.
Cameron Dale [Wed, 27 Feb 2008 20:05:30 +0000 (12:05 -0800)]
Add appropriate piece strings to the DHT.

16 years agoAdded piece hashing to the HashObject.
Cameron Dale [Wed, 27 Feb 2008 19:42:54 +0000 (11:42 -0800)]
Added piece hashing to the HashObject.

16 years agoOnly use the ThrottlingProtocol if the producer is streaming.
Cameron Dale [Wed, 27 Feb 2008 07:05:00 +0000 (23:05 -0800)]
Only use the ThrottlingProtocol if the producer is streaming.

16 years agoFixed the ThrottlingFactory to work with web2 static streams from the web server.
Cameron Dale [Wed, 27 Feb 2008 06:42:23 +0000 (22:42 -0800)]
Fixed the ThrottlingFactory to work with web2 static streams from the web server.

16 years agoAnother attempt at throttling, still not working.
Cameron Dale [Tue, 26 Feb 2008 01:10:58 +0000 (17:10 -0800)]
Another attempt at throttling, still not working.

16 years agoA new TODO item.
Cameron Dale [Mon, 25 Feb 2008 07:04:39 +0000 (23:04 -0800)]
A new TODO item.

16 years agoAlso remove changed cache files during directory scan.
Cameron Dale [Sun, 24 Feb 2008 23:14:00 +0000 (15:14 -0800)]
Also remove changed cache files during directory scan.

16 years agoIgnore unknown cache files during directory scan.
Cameron Dale [Sun, 24 Feb 2008 23:13:15 +0000 (15:13 -0800)]
Ignore unknown cache files during directory scan.

16 years agoStandardize the number of values retrieved from the DHT.
Cameron Dale [Sun, 24 Feb 2008 22:01:13 +0000 (14:01 -0800)]
Standardize the number of values retrieved from the DHT.

Added the new RETRIEVE_VALUES configuration parameter.
The desired number of values can now be negative, indicating
that only the closest STORE_REDUNDANCY nodes are to be queried.

16 years agoRewrite of the actions to take advantage of the commonalities between them.
Cameron Dale [Sun, 24 Feb 2008 08:31:45 +0000 (00:31 -0800)]
Rewrite of the actions to take advantage of the commonalities between them.

16 years agoCheck response packet lengths before sending.
Cameron Dale [Sun, 24 Feb 2008 04:30:26 +0000 (20:30 -0800)]
Check response packet lengths before sending.

16 years agoRemove an unneeded khashmir file.
Cameron Dale [Sun, 24 Feb 2008 01:37:44 +0000 (17:37 -0800)]
Remove an unneeded khashmir file.

16 years agoBreak up the find_value into 2 parts (with get_value).
Cameron Dale [Sat, 23 Feb 2008 02:44:13 +0000 (18:44 -0800)]
Break up the find_value into 2 parts (with get_value).

To better support multiple values per key, the old find_value request is
broken up into find_value, which doesn't stop when it finds a node with
values but just records the number of values the node has, and
get_value, which queries the found nodes that have values to retrieve
them.

16 years agoRefresh DHT values just before they are due to expire.
Cameron Dale [Fri, 22 Feb 2008 23:30:57 +0000 (15:30 -0800)]
Refresh DHT values just before they are due to expire.

16 years agoMove the key expiring to the checkpoint function.
Cameron Dale [Fri, 22 Feb 2008 19:33:50 +0000 (11:33 -0800)]
Move the key expiring to the checkpoint function.

16 years agoUnload the AptPackages caches after a period of inactivity.
Cameron Dale [Fri, 22 Feb 2008 19:22:28 +0000 (11:22 -0800)]
Unload the AptPackages caches after a period of inactivity.

16 years agoUpdated the copyright definitions.
Cameron Dale [Fri, 22 Feb 2008 18:55:16 +0000 (10:55 -0800)]
Updated the copyright definitions.

16 years agoMore and better error messages in the DHT.
Cameron Dale [Fri, 22 Feb 2008 02:40:56 +0000 (18:40 -0800)]
More and better error messages in the DHT.

Also added message verification for the incoming message
to prevent abuse.

16 years agoReturn a token in find_node responses, use it in store_value requests.
Cameron Dale [Thu, 21 Feb 2008 23:18:44 +0000 (15:18 -0800)]
Return a token in find_node responses, use it in store_value requests.

Also changed the checkpointing frequency to 5 minutes so that storing 3
old tokens will give an age of 10-15 minutes (as per protocol).

16 years agoUse compact encoding of peer info for downloads.
Cameron Dale [Thu, 21 Feb 2008 22:27:21 +0000 (14:27 -0800)]
Use compact encoding of peer info for downloads.

16 years agoRemove some extra logging that shouldn't have been in the last commit.
Cameron Dale [Thu, 21 Feb 2008 21:43:03 +0000 (13:43 -0800)]
Remove some extra logging that shouldn't have been in the last commit.

16 years agoUse compact encoding of node contact info in the DHT.
Cameron Dale [Thu, 21 Feb 2008 21:42:02 +0000 (13:42 -0800)]
Use compact encoding of node contact info in the DHT.

16 years agoAllow arbitrary strings to be stored in the DHT database.
Cameron Dale [Thu, 21 Feb 2008 20:11:29 +0000 (12:11 -0800)]
Allow arbitrary strings to be stored in the DHT database.

Also removed the refreshValues as it is no longer needed.

16 years agoRemove the originated time from the DHT value storage.
Cameron Dale [Thu, 21 Feb 2008 19:26:22 +0000 (11:26 -0800)]
Remove the originated time from the DHT value storage.

16 years agoAutomatically set the version in setup.py from the changelog.
Cameron Dale [Thu, 21 Feb 2008 19:10:38 +0000 (11:10 -0800)]
Automatically set the version in setup.py from the changelog.

16 years agoClean up some admin things.
Cameron Dale [Thu, 21 Feb 2008 18:26:46 +0000 (10:26 -0800)]
Clean up some admin things.

16 years agoAdd and clean up some of the epydoc documentation.
Cameron Dale [Thu, 21 Feb 2008 04:59:58 +0000 (20:59 -0800)]
Add and clean up some of the epydoc documentation.

16 years agoAnother new TODO item.
Cameron Dale [Thu, 21 Feb 2008 03:03:28 +0000 (19:03 -0800)]
Another new TODO item.

16 years agoMore work on the TODO.
Cameron Dale [Thu, 21 Feb 2008 02:58:29 +0000 (18:58 -0800)]
More work on the TODO.

16 years agoSnapshot build 2.
Cameron Dale [Wed, 20 Feb 2008 19:36:07 +0000 (11:36 -0800)]
Snapshot build 2.

16 years agoFixed some packaging issues with config file handling.
Cameron Dale [Wed, 20 Feb 2008 19:34:47 +0000 (11:34 -0800)]
Fixed some packaging issues with config file handling.

16 years agoSnapshot build 1.
Cameron Dale [Wed, 20 Feb 2008 18:54:48 +0000 (10:54 -0800)]
Snapshot build 1.

16 years agoAdded 2 (commented) failed attempts to throttle the web server.
Cameron Dale [Wed, 20 Feb 2008 05:52:36 +0000 (21:52 -0800)]
Added 2 (commented) failed attempts to throttle the web server.

16 years agoAnother new TODO item: better DHT lookups for multiple values per key.
Cameron Dale [Wed, 20 Feb 2008 04:45:48 +0000 (20:45 -0800)]
Another new TODO item: better DHT lookups for multiple values per key.

16 years agoFix some minor bugs in the previous commits.
Cameron Dale [Wed, 20 Feb 2008 04:44:54 +0000 (20:44 -0800)]
Fix some minor bugs in the previous commits.

Improper hash_type use in AptPackages.
Use URL quoting and unquoting for peer downloads.
More and better log messages.

16 years agoUse python-debian for parsing RFC 822 files (untested).
Cameron Dale [Tue, 19 Feb 2008 00:17:57 +0000 (16:17 -0800)]
Use python-debian for parsing RFC 822 files (untested).

16 years agoDon't add files to the DHT if a hash could not be found for them.
Cameron Dale [Tue, 19 Feb 2008 00:03:18 +0000 (16:03 -0800)]
Don't add files to the DHT if a hash could not be found for them.

16 years agoDownload from peers using the hash instead of a directory location.
Cameron Dale [Mon, 18 Feb 2008 23:50:48 +0000 (15:50 -0800)]
Download from peers using the hash instead of a directory location.

Also updated the HTTP downloading tests to not use www.camrdale.org
but instead use the less changing IETF RFCs.

16 years agoHTTPServer uses the hash to lookup the file in the DB (no more directories).
Cameron Dale [Mon, 18 Feb 2008 22:40:04 +0000 (14:40 -0800)]
HTTPServer uses the hash to lookup the file in the DB (no more directories).

16 years agoAdd the git-buildpackage config file.
Cameron Dale [Mon, 18 Feb 2008 07:24:17 +0000 (23:24 -0800)]
Add the git-buildpackage config file.

16 years agoFix up some errors in the packaging.
Cameron Dale [Mon, 18 Feb 2008 04:30:06 +0000 (20:30 -0800)]
Fix up some errors in the packaging.

16 years agoInitial debian directory and packaging related changes.
Cameron Dale [Mon, 18 Feb 2008 03:42:45 +0000 (19:42 -0800)]
Initial debian directory and packaging related changes.

16 years agoFinalized initial motivation paper.
Cameron Dale [Wed, 13 Feb 2008 18:27:16 +0000 (10:27 -0800)]
Finalized initial motivation paper.

16 years agoLots of work on the motivating paper, and a new figure.
Cameron Dale [Sat, 9 Feb 2008 01:30:14 +0000 (17:30 -0800)]
Lots of work on the motivating paper, and a new figure.

16 years agoAdded the kile project file.
Cameron Dale [Thu, 7 Feb 2008 00:30:16 +0000 (16:30 -0800)]
Added the kile project file.

16 years agoInitial creation of the motivating paper.
Cameron Dale [Fri, 25 Jan 2008 18:30:33 +0000 (10:30 -0800)]
Initial creation of the motivating paper.

16 years agoMore TODOs.
Cameron Dale [Tue, 22 Jan 2008 21:55:34 +0000 (13:55 -0800)]
More TODOs.

16 years agoUpdates after more though on a couple of of the TODO items.
Cameron Dale [Sat, 19 Jan 2008 01:45:34 +0000 (17:45 -0800)]
Updates after more though on a couple of of the TODO items.

16 years agoAdded more TODO items and a pretty diagram to the documentation.
Cameron Dale [Fri, 18 Jan 2008 01:38:50 +0000 (17:38 -0800)]
Added more TODO items and a pretty diagram to the documentation.