Skip to content

Commit

Permalink
Set timeout for FTP transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
valfieri committed Oct 16, 2020
1 parent d5a8b80 commit cab90b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ftp-upload-binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():
(options, args) = parser.parse_args()

if (options.url and options.local and options.remote and options.user and options.password):
ftp = FTP(options.url)
ftp = FTP(options.url, timeout=100)
ftp.login(options.user, options.password)
with open(options.local, 'r') as f:
ftp.storbinary('STOR %s' % options.remote, f)
Expand Down

0 comments on commit cab90b8

Please sign in to comment.