rdt-client/server/RdtClient.Service/Services
Antonin Lenfant-Kodia 643a2e3d63 Share one authenticated Synology session across downloads
Init() created a new SynologyClient and logged in for every download. A
many-file download opened dozens of near-simultaneous sessions for one DSM
account; DSM invalidates older session IDs, so in-flight File Station calls
failed with error 119 "SID not found".

Add SynologyClientProvider: a thread-safe cache that authenticates once and
shares the client across downloads (concurrent first calls collapse to a
single login; later calls reuse it; a credential change re-authenticates).
Wrap every Synology call in a session-retry that drops the session and
re-authenticates once on a session error (119/106/107) so an expired SID
self-heals, reading credentials fresh from settings so edits take effect live.

Adds provider unit tests and a downloader test covering the 119 re-auth path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 15:42:10 +02:00
..
DebridClients Merge pull request #986 from asylumexp/fix/torbox-database-error 2026-05-30 08:55:56 -06:00
Downloaders Share one authenticated Synology session across downloads 2026-06-15 15:42:10 +02:00
Authentication.cs Usenet support 2026-02-13 13:15:57 -05:00
DownloadableFileFilter.cs Global formatting. 2026-02-11 19:44:49 -07:00
DownloadClient.cs Cleanup. 2026-02-23 20:04:53 -07:00
Downloads.cs handle rate limiting and database errors by delaying downloads 2026-05-26 20:16:07 +10:00
Enricher.cs Global formatting. 2026-02-11 19:44:49 -07:00
IDownloads.cs handle rate limiting and database errors by delaying downloads 2026-05-26 20:16:07 +10:00
ITrackerListGrabber.cs Global formatting. 2026-02-11 19:44:49 -07:00
QBittorrent.cs Fix torbox save path mapping for single file downloads. 2026-06-05 20:16:14 -06:00
RdtHub.cs Global formatting. 2026-02-11 19:44:49 -07:00
RemoteService.cs Mem and CPU perf fixes 2026-04-21 22:19:06 -04:00
Sabnzbd.cs fix(sabnzbd): Fix delete implementation to respect finished action 2026-05-31 17:12:13 -04:00
Settings.cs Fix torbox save path mapping for single file downloads. 2026-06-05 20:16:14 -06:00
TorrentRunner.cs Cleanup. 2026-05-27 22:04:30 -06:00
TorrentRunnerState.cs fix(tests): restore parallel execution 2026-05-18 21:30:31 +02:00
Torrents.cs Merge pull request #986 from asylumexp/fix/torbox-database-error 2026-05-30 08:55:56 -06:00
TrackerListGrabber.cs Global formatting. 2026-02-11 19:44:49 -07:00
UnpackClient.cs Cleanup. 2026-02-23 20:04:53 -07:00