When a node fails, schedule a future ping to check again.
authorCameron Dale <camrdale@gmail.com>
Sat, 10 May 2008 00:18:20 +0000 (17:18 -0700)
committerCameron Dale <camrdale@gmail.com>
Sat, 10 May 2008 00:18:20 +0000 (17:18 -0700)
commitcebe4a5c92702346c939e370cc169ee781358b8d
tree869435d723c7dabfaaea5a973994d7c825dcae54
parent6d242a16df6b2f911b8fc7079219b38b26f23ecb
When a node fails, schedule a future ping to check again.

Should help to eliminate bad nodes faster.
To facilitate, added a sendPing() to Khashmir.
insertNode now uses sendPing() rather than it's own routines.
Pinging is now stateful, so that multiple pings are not sent simultaneously.
apt_p2p_Khashmir/DHT.py
apt_p2p_Khashmir/actions.py
apt_p2p_Khashmir/khashmir.py
apt_p2p_Khashmir/ktable.py