[update] timeout 3 -> 5

This commit is contained in:
peterlu14
2022-10-18 11:23:53 +08:00
parent f25d9221c6
commit 936514871f
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -227,8 +227,10 @@ class Project(threading.Thread):
if action.type == 'start':
self._count += 1
for instruction in instruction_set:
print('instruction 1', device, instruction, datetime.now())
args = list(map(lambda arg: task_info[arg], instruction['arguments']))
target=getattr(device, instruction['method'])(*args)
print('instruction 2', device, instruction, datetime.now())
delay_time += (time() - now)
+1 -1
View File
@@ -93,7 +93,7 @@ class SocketClient(metaclass=abc.ABCMeta):
if self._socket is None:
try:
self._socket = Socket(AF_UNIX, SOCK_STREAM)
self._socket.settimeout(3)
self._socket.settimeout(5)
self._socket.connect(self._socket_file)
except Exception as e:
print('open_socket error:', e)