pymdht
pymdht copied to clipboard
A flexible implementation of the Mainline DHT protocol.
`Pymdht.get_peers` returns too many peers for a non-existent info hash. This observation should be reproduced by the following code: ``` python import sys import logging sys.path.append('') from pymdht.core.pymdht import Pymdht...
Two unit tests are broken: ``` ====================================================================== ERROR: test_report_unreachable (pymdht.core.test_boostrap.TestBootstrap) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/lfei/workspace/tud/p2p/pymdht/core/test_boostrap.py", line 53, in test_report_unreachable b.report_unreachable(addrs[0]) IndexError: list index out of range --------------------...
Now, whenever the minitwisted thread crashes, the main thread keeps running. I think it's better to use a threading.join() to kill the whole process when the minitwisted thread dies.
Take some of the code from the 'investigate_traffic' branch and merge it into mainline. The idea is that a main bootstrap node should avoid being added to other routing tables...