Add connection timeout to SSH command

This commit is contained in:
Joshua M. Boniface 2020-06-30 13:28:09 -04:00
parent 809e900588
commit 28b72c922a

View file

@ -147,6 +147,13 @@ rffmpeg_command = list()
# Add SSH component
rffmpeg_command.append('ssh')
rffmpeg_command.append('-q')
# Set our connection timeouts, in case one of several remote machines is offline
rffmpeg_command.append('-o')
rffmpeg_command.append('ConnectTimeout=1')
rffmpeg_command.append('-o')
rffmpeg_command.append('ConnectionAttempts=1')
for arg in config['remote_args']:
if arg:
rffmpeg_command.append(arg)