Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix: change timeout from 5m to 10s when file length is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
lowzj committed May 30, 2018
1 parent 1285911 commit 443998f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getter/dfget
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def download(params):

timeout = 5 * 60
if not paramparser.cmdparam.timeout:
if env.file_length > 0:
if env.file_length >= 0:
timeout = env.file_length / (64 * 1024) + 10.0
else:
timeout = paramparser.cmdparam.timeout
Expand Down

0 comments on commit 443998f

Please sign in to comment.