From 5fdf809141d39f4231de5cb060e6f18b4304a9cc Mon Sep 17 00:00:00 2001 From: Simon Bear Date: Sat, 23 Nov 2024 19:13:24 +1100 Subject: [PATCH] Timeout image downloads faster than 2 minutes. --- grails-app/services/au/org/ala/images/ImageService.groovy | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grails-app/services/au/org/ala/images/ImageService.groovy b/grails-app/services/au/org/ala/images/ImageService.groovy index 37fb5c71..cb32c581 100644 --- a/grails-app/services/au/org/ala/images/ImageService.groovy +++ b/grails-app/services/au/org/ala/images/ImageService.groovy @@ -103,11 +103,11 @@ SELECT private static int BACKGROUND_TASKS_BATCH_SIZE = 100 - @Value('${http.default.readTimeoutMs:120000}') - int readTimeoutMs = 120000 // 2 minutes + @Value('${http.default.readTimeoutMs:10000}') + int readTimeoutMs = 10000 // 10 seconds - @Value('${http.default.connectTimeoutMs:120000}') - int connectTimeoutMs = 120000 // 2 minutes + @Value('${http.default.connectTimeoutMs:5000}') + int connectTimeoutMs = 5000 // 5 seconds @Value('${http.default.user-agent:}') String userAgent