fix: treat DSM 599 as task-not-ready in _poll_task, poll until 60s timeout

DirSize/MD5 return error 599 while the async task is still initialising on
the NAS, not only after the task is gone. Remove the 5-consecutive-599 abort
limit and the debug stderr logging; instead pass on 599 and keep polling
until the existing 60 s timeout fires. Rename the test that checked the old
limit to reflect the new timeout-based behaviour.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-14 13:19:32 +02:00
parent c0d4c347c5
commit 4bf655236d
5 changed files with 10 additions and 32 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "mcp-synology-filestation"
version = "0.2.3"
version = "0.2.4"
description = "MCP server for Synology FileStation"
requires-python = ">=3.12"
dependencies = [