From 998d3fe5e548804dd94c0494ccafc9a652aa3cf0 Mon Sep 17 00:00:00 2001 From: Jim Salter Date: Wed, 3 May 2017 15:37:07 -0400 Subject: [PATCH] controlpersist=yes --> controlpersist=1m Make the SSH control channel die after 1m, to avoid complaints of accumulating dead mux channels. --- syncoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncoid b/syncoid index 2a3eae0..9345fea 100755 --- a/syncoid +++ b/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 {