diff --git a/tika-dl/src/main/java/org/apache/tika/dl/imagerec/DL4JInceptionV3Net.java b/tika-dl/src/main/java/org/apache/tika/dl/imagerec/DL4JInceptionV3Net.java index a6f8aa3b8b..608e7eb503 100644 --- a/tika-dl/src/main/java/org/apache/tika/dl/imagerec/DL4JInceptionV3Net.java +++ b/tika-dl/src/main/java/org/apache/tika/dl/imagerec/DL4JInceptionV3Net.java @@ -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(),