mirror of https://github.com/jimsalterjrs/sanoid
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:
parent
ab12e59485
commit
998d3fe5e5
2
syncoid
2
syncoid
|
|
@ -813,7 +813,7 @@ sub getssh {
|
|||
if ($remoteuser eq 'root') { $isroot = 1; } else { $isroot = 0; }
|
||||
# now we need to establish a persistent master SSH connection
|
||||
$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;
|
||||
$rhost = "-S $socket $rhost";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue