fix(cast): read timeout on the media-server proxy client

A stalled source server parked one media-server request thread forever;
a 30 s per-read timeout turns that into an io::Error the renderer sees.

cc
This commit is contained in:
vicrodh committed 2026-09-13 03:36:51 -06:00
1 parent acfded5a7e
commit 08226a4ffd
1 file changed
+5
+5
View File
@@ -3982,6 +3982,11 @@ fn proxy_client() -> &'static reqwest::Client {
PROXY_HTTP.get_or_init(|| {
reqwest::Client::builder()
.connect_timeout(std::time::Duration::from_secs(10))
// A source server (Plex / Jellyfin / Subsonic) that stops
// answering mid-body used to park the media server's request
// thread in `BodyReader::read` forever. Per-read and reset on
// progress, so a slow-but-alive stream is never cut.
.read_timeout(std::time::Duration::from_secs(30))
.build()
.unwrap_or_default()
})