Fix some bugs in the pinging and ID checking.
authorCameron Dale <camrdale@gmail.com>
Thu, 20 Mar 2008 22:09:29 +0000 (15:09 -0700)
committerCameron Dale <camrdale@gmail.com>
Thu, 20 Mar 2008 22:09:29 +0000 (15:09 -0700)
commit3fa6b85ac4e8e9f88a31b08fd3557961d799139d
tree1e9c13113a7978408d1f084f8fbfb76aba429880
parent63a9d6d725491050d9cb28c397b58edd584e11d8
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.
apt_p2p_Khashmir/khashmir.py
apt_p2p_Khashmir/knode.py
apt_p2p_Khashmir/ktable.py