Permalink
Browse files

timeout configurable

  • Loading branch information...
1 parent e13d987 commit ebd609d7a2525cce08cd83b98772225fbf5f33f0 @rep committed Sep 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 py/pwrcall/rpcnode.py
View
@@ -75,6 +75,7 @@ def __init__(self, cert=None, eventloop=None):
self.listeners = set()
self._closing = False
self._shutdown = False
+ self.timeoutseconds
self.exports = {}
self.directcaps = {}
self.revoked = set()
@@ -286,7 +287,7 @@ def ping_response(r):
self.livesign = time.time()
if not self.conn._closed:
- if time.time() - self.livesign > 7.0:
+ if time.time() - self.livesign > self.node.timeoutseconds:
self.logclose('Connection timeout.')
else:
p = self.call('%ping', 'ping')

0 comments on commit ebd609d

Please sign in to comment.