From 769fb3c26b36b64778b7763a3e24ce1c66d44307 Mon Sep 17 00:00:00 2001 From: Kashyap Paidimarri Date: Tue, 19 Mar 2013 12:55:29 +0530 Subject: [PATCH] Adding timeout to default.rsync --- default-rsync.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/default-rsync.lua b/default-rsync.lua index 6fa578e..88b2cfb 100644 --- a/default-rsync.lua +++ b/default-rsync.lua @@ -76,6 +76,7 @@ rsync.checkgauge = { rsync_path = true, sparse = true, temp_dir = true, + timeout = true, times = true, update = true, verbose = true, @@ -481,6 +482,11 @@ rsync.prepare = function( computedN = computedN + 1 end + if crsync.timeout then + computed[ computedN ] = '--timeout=' .. crsync.timeout + computedN = computedN + 1 + end + if shortsN ~= 2 then computed[ 1 ] = table.concat( shorts, '' ) else