app config, tweakers, move_* functions

This commit is contained in:
2022-09-07 18:16:59 +02:00
parent 18a7b2abb4
commit 1d26a309e7
3 changed files with 239 additions and 200 deletions

View File

@@ -32,12 +32,11 @@ class Deltatau:
if len(hpp)>2:
param['fast_gather_port']=int(hpp[2])
_log.info(' -> ssh-tunneling PPComm({host}:{port} {host}:{fast_gather_port})'.format(**param))
try:
self._comm=comm=PPComm(**param)
self._comm=comm=PPComm(**param,timeout=2.0)
self._gather=gather=Gather(comm)
except BaseException as e:
_log.critical(f'can not connect to deltatau:{e}')
except socket.timeout as e:
_log.critical(f'can not connect to deltatau:"{host}" -> {e}')
self._comm=comm=None
self._gather=gather=None
#return