Repository navigation
2.1.5 bug fixes: reconnect, offline playback, downloads #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
52dceae
Library picks back up when the server returns
StaticHumStudio 6bd77e5
Pause, cancel and delete stick while a book is downloading
StaticHumStudio 5ad6b3d
The self-signed certificate toggle works without a restart
StaticHumStudio 1663e14
Play right after a download finishes uses the downloaded copy
StaticHumStudio 519417f
Downloaded books start playing without waiting on the server
StaticHumStudio 906b7e3
A deleted download can be downloaded again from its book page
StaticHumStudio 3b26664
Switching books no longer waits 30s on a server that is not there
StaticHumStudio f2d491b
Pause, cancel and delete finish even if you leave the Downloads screen
StaticHumStudio d4177f7
Pausing a download at the very end no longer strands it
StaticHumStudio 9400ef7
An empty Library fills in when the server comes back
StaticHumStudio e603e5e
"Nothing Downloaded" only shows when nothing is downloaded
StaticHumStudio 78000a4
Switching books no longer waits on closing a dead server's session
StaticHumStudio d2683f0
A background library reload can't strand the refresh spinner
StaticHumStudio 4f1147d
A cold start behind a dead server waits on one reachability probe, no…
StaticHumStudio e872aee
A library list shown in a different order no longer reloads forever
StaticHumStudio df5a2ea
Self-signed trust applies to the configured server only
StaticHumStudio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
292 changes: 195 additions & 97 deletions
292
app/src/main/java/com/ninelivesaudio/app/data/remote/SelfSignedCertTrustManager.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the server becomes blackholed after the last reachability probe,
connectionStatusremainsCONNECTED, so switching books first spends five seconds in the final progress push, then this session-sync call gets a fresh five-second timeout, andcloseSessiongets a third one. Because the next load waits for this terminal job, the supposedly bounded transition can still block for roughly 15 seconds; use one shared deadline for the complete terminal sequence or mark the server unavailable after the first timeout.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Declining for 2.1.5, filed as #54. The worst case here is three 5s caps in a row (about 15s), only when the server dies inside the 60s ping window. On master the same switch measured 30s on device, with no bound at all. A shared deadline for the whole terminal job is a refactor, which doesn't fit a bug-fix release.