Browse Source

decrease daemon timeout

283
ThomasV 9 years ago
parent
commit
becfe13df2
  1. 2
      lib/daemon.py

2
lib/daemon.py

@ -67,7 +67,7 @@ class Daemon(DaemonThread):
host = config.get('rpchost', 'localhost') host = config.get('rpchost', 'localhost')
port = config.get('rpcport', 7777) port = config.get('rpcport', 7777)
self.server = SimpleJSONRPCServer((host, port), requestHandler=RequestHandler, logRequests=False) self.server = SimpleJSONRPCServer((host, port), requestHandler=RequestHandler, logRequests=False)
self.server.timeout = 1.0 self.server.timeout = 0.1
for cmdname in known_commands: for cmdname in known_commands:
self.server.register_function(getattr(self.cmd_runner, cmdname), cmdname) self.server.register_function(getattr(self.cmd_runner, cmdname), cmdname)
self.server.register_function(self.run_cmdline, 'run_cmdline') self.server.register_function(self.run_cmdline, 'run_cmdline')

Loading…
Cancel
Save