add a timeout to qwknetftpc
This commit is contained in:
parent
e8eef519ed
commit
64ae6556f1
@ -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])
|
||||
server = dostuff(sys.argv[1])
|
||||
|
Reference in New Issue
Block a user