Commit Graph

86 Commits

Author SHA1 Message Date
joriscarrier
4cd8488ed7 tests(server): test storing (#64) 2019-01-15 16:57:45 -05:00
joriscarrier
483ff455e7 refacto(storage): use '@abstractmethod' instead of 'raise NotImplementedError' in Storage Interface (#61) 2019-01-12 11:46:53 -05:00
joriscarrier
be6b60847b Asynchronous Server listening (#58) (#60) 2019-01-12 11:44:39 -05:00
Brian Muller
0953e0edb2 use xenial distribution for python 3.7 support in travis 2019-01-09 11:34:37 -05:00
Brian Muller
3e7cc3b172 spell pytest right in dev reqs 2019-01-09 11:30:48 -05:00
Brian Muller
cf9d490d64 removed all camelcase silliness, bumped version to 2.0 2019-01-09 11:27:10 -05:00
Brian Muller
dbe41e3b08 updated issue template, readme 2018-11-24 10:01:27 -05:00
Brian Muller
838a7c2435 Update issue templates 2018-11-24 09:56:09 -05:00
Anthony Ryan
ac87b85987 Fix Wikipedia link (#53)
The link on Wikipedia has been replaced with a disambiguation page, link directly instead.
2018-10-25 16:20:20 -04:00
Brian Muller
7d3b8efef9 Minor version release, due to #52 2018-06-30 09:27:28 -04:00
Nisen
c3b7836eaa Make table traverser more accurate. (#52)
Add test case for TableTraverserTest;
Change iter method to pop left from 'rightBuckets' which is nearer.
2018-06-30 09:24:00 -04:00
Brett Johnson
3035876839 Error appropriately when putting invalid typed value in DHT (#48)
* Fixes #46

* Remove some ambiguity in the way IStorage works in comment

* Make documentation addition more clear

* Remove unneeded line

* Remove documentation example
2018-04-18 12:55:23 -04:00
NixNodes
ecde2c9258 Use timers not affected by system clock updates (#42)
See paragraph two of https://docs.python.org/3/library/time.html#time.time
2018-01-25 13:06:17 -05:00
Brian Muller
3b93189ef2 removed unused import 2018-01-02 14:27:17 -05:00
Brian Muller
d78e9e6b0e Merge branch 'python3.5' 2018-01-02 14:21:28 -05:00
Brian Muller
f3641864d0 fixed examples 2018-01-02 14:17:36 -05:00
Brian Muller
20dd256608 all tests pass 2018-01-02 14:00:19 -05:00
Brian Muller
ab8291eada updated logging code and README 2018-01-02 13:14:25 -05:00
Brian Muller
65dc646e98 upgraded testing methods, dev dependencies, and travis config 2018-01-01 17:07:40 -05:00
Vicente Dragicevic
a6e50acd84 @python3.5 - Fix saving/loading state (#37)
* Fix await self.find() in crawler

* Fix state loading/saving

* Fix saveStateRegularly (it was using a Twisted function)

* Use loop.call_later for saveStateRegularly and cancel task on server.stop()

* Remove innecessary function

* Add missing initialization of save_state_loop, and changed the checks for Noneness
2017-10-16 23:17:35 +02:00
Vicente Dragicevic
67abd88ec2 Fix await self.find() in crawler (#34) 2017-10-07 12:55:14 -04:00
Justin Holmes
b0db225b98 Allowing swappable protocol_class for Server. (#32)
* Allowing swappable protocol_class for Server.

* Changed protocol_class to be an attribute on the Server class; added tests.
2017-08-31 17:36:22 -04:00
Brian Muller
6045e70ddb Fixes #31 - issue in example 2017-08-30 20:42:21 -04:00
Brian Muller
e8ab5f8335 fix issue in republishing keys with only digest available, fixing #25 2017-03-15 14:40:32 -04:00
Brian Muller
e58c710da0 fix issue in republishing keys with only digest available, fixing #25 2017-03-15 14:36:10 -04:00
faisal burhanudin
55594096d1 missing asyncio and change unittest (#24)
* missing asyincio

* - change unittest twisted using builtin unittest
- fix bytes parameter in hashlib
2016-11-30 14:45:46 -05:00
Brian Muller
125abe7415 fix issue with bit prefix finding in sharedPrefix 2016-08-06 11:16:57 -04:00
Eloahman
de78bd9b5d Async call should be scheduled in loop 2016-08-06 10:46:24 -04:00
Eloahman
080ed21627 Periodic refresh issue fixed for Python3 2016-08-02 09:55:49 -04:00
Brian Muller
f3d1d2e6a5 fixed issue with refreshTable not using correct spider api 2016-08-01 13:41:26 -04:00
Brian Muller
464ae5bd1f library now uses asyncio instead of twisted 2016-07-12 08:32:02 -04:00
Brian Muller
6bbd1bfa42 Revert "Comment change"
This reverts commit b37b65cd10.
2016-04-07 10:22:11 +03:00
Prabodh Agarwal
b37b65cd10 Comment change
Added comments for interface as changed in listen() to reflect in kademlia.readthedocs,org page.
2016-04-07 10:16:45 +03:00
Brian Muller
32e4cb7ff6 make sure pyflakes / pep8 run on travis build 2016-04-07 09:47:08 +03:00
Brian Muller
9549bc6a5b make sure that linting is a part of automated tests 2016-04-07 09:42:40 +03:00
Brian Muller
87ea77d12d formating update, bumped version 2016-04-07 09:39:29 +03:00
Prabodh Agarwal
7b29c50c79 Provide ipv6 address support
Provide ipv6 address support
2016-04-07 09:35:37 +03:00
Brian Muller
b9b23e1131 Merge pull request #13 from SkyZH/patch-1
Clean up midpoint calculation in routing table.
2015-10-16 12:03:18 -04:00
呆萌的弛哥SkyZH在银光闪烁的沙滩上面对大海写代码
ac7b3c12ab Update routing.py 2015-10-16 23:49:54 +08:00
呆萌的弛哥SkyZH在银光闪烁的沙滩上面对大海写代码
a9e390126c Update routing.py 2015-10-16 23:43:11 +08:00
Brian Muller
00ecaf5e31 Merge pull request #3 from cpacia/transfer
Bug fixes when transferring key/values
2015-08-09 16:17:12 -04:00
Brian Muller
77186bbf6f added docs to indicate failure state if attempt to save w/o redundancy, closing #5 2015-08-04 17:31:58 -04:00
Chris
237d89b6b6 Created new method welcomeIfNewNode in protocol.
This commit consolidates the maybeTransferKeyValues and addContact calls into
the transferKeyValues method and renames it.
2015-07-17 21:34:25 -04:00
Chris
2f363cba84 Maybe transfer key, values on incoming request.
The existing code only checks if we should call transferKeyValues when we
receive a response to one of our RPCs. We also need to check when receive a
new request from a new node.

This commit adds a new method that is called each time we receive a new request.
2015-07-14 21:29:48 -04:00
Chris
f5b2c13d93 Bug fix in protocol.handleCallResponse
isNewNode was called after the contact was added to the routing table meaning
it would always return false and the key/values would never be transferred.
2015-07-14 21:18:57 -04:00
Brian Muller
ccf18622b4 fixed issue getting keys in networks of size 2 2015-07-07 13:20:13 -04:00
Brian Muller
89f04cf558 bumped version to 0.5 2015-06-27 15:11:55 -04:00
Brian Muller
30dd82082c Merge pull request #2 from muneeb-ali/patch-1
Update intro.rst
2015-06-04 18:12:31 -04:00
Muneeb Ali
e4e0fc6f03 Update intro.rst 2015-06-04 17:58:01 -04:00
Brian Muller
42b6c949ac Merge pull request #1 from cpacia/nodeheapfix
Bug fix in NodeHeap - no duplicates
2015-06-04 16:16:03 -04:00