Skip to content

Commit

Permalink
ping delay configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
rep committed Sep 25, 2012
1 parent cbedf7f commit 4f4a516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/pwrcall/rpcnode.py
Expand Up @@ -292,7 +292,7 @@ def ping_response(r):
else: else:
p = self.call('%ping', 'ping') p = self.call('%ping', 'ping')
p._except(ping_response) 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): def closed(self, reason):
self.node._remove_connection(self) self.node._remove_connection(self)
Expand Down

0 comments on commit 4f4a516

Please sign in to comment.