controlpersist=yes --> controlpersist=1m

Make the SSH control channel die after 1m, to avoid complaints of accumulating dead mux channels.
This commit is contained in:
Jim Salter 2017-05-03 15:37:07 -04:00 committed by GitHub
parent ab12e59485
commit 998d3fe5e5
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ sub getssh {
if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; } if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; }
# now we need to establish a persistent master SSH connection # now we need to establish a persistent master SSH connection
$socket = "/tmp/syncoid-$remoteuser-$rhost-" . time(); $socket = "/tmp/syncoid-$remoteuser-$rhost-" . time();
open FH, "$sshcmd -M -S $socket -o ControlPersist=yes $sshport $rhost exit |"; open FH, "$sshcmd -M -S $socket -o ControlPersist=1m $sshport $rhost exit |";
close FH; close FH;
$rhost = "-S $socket $rhost"; $rhost = "-S $socket $rhost";
} else { } else {