fix: retry Plex home hubs

close #962
This commit is contained in:
edde746
2026-05-02 19:18:42 +02:00
parent 81e036dc4f
commit afdec05dbf
6 changed files with 245 additions and 8 deletions
+4
View File
@@ -10,6 +10,10 @@ class MediaServerTimeouts {
/// HTTP receive timeout for streaming/large responses from a media server.
static const receive = Duration(seconds: 120);
/// Retry budget for home `/hubs` startup calls. These endpoints can be slow
/// while Plex wakes idle disks, but should not block forever.
static const homeHubAttemptTimeouts = [Duration(seconds: 10), Duration(seconds: 5), Duration(milliseconds: 2500)];
// ── Plex server discovery / endpoint racing ────────────────────
/// Timeout for probing a cached/preferred endpoint before falling back to
/// the full candidate race (used in [PlexServer.findBestWorkingConnection]).