Timeout grab camera 60 s e sorgenti admin 15 s (prima apertura GenTL lenta). Refs #106

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 17:54:56 +01:00
parent 08616aa1fa
commit 7cb877b11b
5 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ def api_camera_sources():
if parsed.scheme not in ("http", "https") or not parsed.netloc:
return jsonify({"error": True, "detail": _("Indirizzo della camera non valido")}), 400
try:
resp = http_requests.get(f"{url.rstrip('/')}/camera/sources", timeout=5)
resp = http_requests.get(f"{url.rstrip('/')}/camera/sources", timeout=15) # #106: era 5, la prima apertura GenTL supera 15 s
except http_requests.RequestException as exc:
return jsonify({
"error": True,