From 64ae6556f1455d3d4491162cb41687523823b814 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 31 Oct 2018 11:29:17 +1000 Subject: [PATCH] add a timeout to qwknetftpc --- utils/qwknet/qwknetftpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/qwknet/qwknetftpc.py b/utils/qwknet/qwknetftpc.py index 736ce5c..0b69045 100644 --- a/utils/qwknet/qwknetftpc.py +++ b/utils/qwknet/qwknetftpc.py @@ -12,7 +12,7 @@ def dostuff(config_file): username = config.get("Main", "Ftp User") password = config.get("Main", "Ftp Password") - ftp = FTP(host) + ftp = FTP(host, timeout=300) ftp.login(username, password) repfile = config.get("Main", "Outbound") + "/" + config.get("Main", "Host") + ".REP" @@ -46,4 +46,4 @@ if __name__ == "__main__": print("Usage python qwknetftpc.py config.ini") exit(1) - server = dostuff(sys.argv[1]) \ No newline at end of file + server = dostuff(sys.argv[1])