Skip to content

Commit 640c70d

Browse files
committed
Cropping tool: allow a timeout limit of 1sec for back-end requests
This seems needed for Google Cloud buckets.
1 parent 4ca16f7 commit 640c70d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/applications/catmaid/control/cropping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ def crop(request:HttpRequest, project_id=None) -> JsonResponse:
695695
tile_source = get_tile_source(sm.tile_source_type)
696696
try:
697697
req = requests.head(tile_source.get_canary_url(sm),
698-
allow_redirects=True, verify=verify_ssl, timeout=0.1)
698+
allow_redirects=True, verify=verify_ssl, timeout=1.0)
699699
reachable = req.status_code == 200
700700
except Exception as e:
701701
logger.error(e)

0 commit comments

Comments
 (0)