Permalink
Browse files

ping delay configurable

  • Loading branch information...
1 parent cbedf7f commit 4f4a516da94106fdebc9396b2cb309d6b4669a88 @rep committed Sep 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 py/pwrcall/rpcnode.py
View
@@ -292,7 +292,7 @@ def ping_response(r):
else:
p = self.call('%ping', 'ping')
p._except(ping_response)
- self.node.eventloop.later(5.0, self.keepalive)
+ self.node.eventloop.later(self.node.timeoutseconds-2, self.keepalive)
def closed(self, reason):
self.node._remove_connection(self)

0 comments on commit 4f4a516

Please sign in to comment.