Skip to content

Conversation

nielsvanvelzen
Copy link
Member

Coil uses a "connectivity checker" to skip the network if it thinks there is no available connection. In Android this is sometimes detected by pinging a known host (e.g. google.com) which might fail for users that blackhole these hosts or only use the app on their local network.

Changes

Add custom connectivity checker that will always return true to force a network request to be made.

Issues

Fixes #4379

@nielsvanvelzen nielsvanvelzen added bug Something isn't working backportable Change may be backported to a point release (remove label once cherrypicked) labels Mar 10, 2025
@nielsvanvelzen nielsvanvelzen added this to the v0.19.0 milestone Mar 10, 2025
@nielsvanvelzen
Copy link
Member Author

Some more context: when Coil thinks there is no network connection it will force OkHttp to load from cache, when OkHttp cannot load something from cache it will return a 504 response code.

@nielsvanvelzen nielsvanvelzen merged commit 99a8f78 into jellyfin:master Mar 11, 2025
5 checks passed
@nielsvanvelzen nielsvanvelzen modified the milestones: v0.19.0, v0.18.6 Mar 11, 2025
@nielsvanvelzen nielsvanvelzen removed the backportable Change may be backported to a point release (remove label once cherrypicked) label Mar 11, 2025
@nielsvanvelzen nielsvanvelzen deleted the coil-always-connected branch March 14, 2025 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The image does not display properly
2 participants