Skip to content

Commit

Permalink
Merge pull request apache#203 from boegel/bump_timeout
Browse files Browse the repository at this point in the history
bump read timeout for downloading file to 60s (1min) in tika-dl
  • Loading branch information
chrismattmann authored Aug 29, 2017
2 parents 74574e3 + 72772c5 commit 6564bc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static synchronized File cachedDownload(File cacheDir, URI uri)
}
LOG.info("Cache doesn't exist. Going to make a copy");
LOG.info("This might take a while! GET {}", uri);
FileUtils.copyURLToFile(uri.toURL(), cacheFile, 5000, 5000);
FileUtils.copyURLToFile(uri.toURL(), cacheFile, 5000, 60000);
//restore the success flag again
FileUtils.write(successFlag,
"CopiedAt:" + System.currentTimeMillis(),
Expand Down

0 comments on commit 6564bc8

Please sign in to comment.