From e8708f1efae4c20fe7597a501c90981e412bd5e9 Mon Sep 17 00:00:00 2001 From: ssamson-tis Date: Tue, 20 Oct 2015 10:22:40 +0200 Subject: [PATCH] Delete timeout with use_compression --- libtisbackup/backup_xva.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtisbackup/backup_xva.py b/libtisbackup/backup_xva.py index 2237886..b4499dc 100755 --- a/libtisbackup/backup_xva.py +++ b/libtisbackup/backup_xva.py @@ -146,7 +146,8 @@ class backup_xva(backup_generic): try: filename_temp = filename+".tmp" self.logger.debug("[%s] Copy in progress",self.backup_name) - socket.setdefaulttimeout(120) + if not str2bool(use_compression): + socket.setdefaulttimeout(120) scheme = "http://" if str2bool(enable_https) == True: