iSubMusicStreamer
iSubMusicStreamer copied to clipboard
Connection resets during streaming ends up polluting cache with bad files
When a file is being streamed from a server and the transfer fails from a connection timeout or reset, iSub tries again and starts re-downloading the same file, but appends the new contents to the already transferred data. The result is the song seems to start over again in the middle.
Once a file has this happen, there doesn't seem to be any way to get it to play correctly except flushing the entire cache or letting that song age out on its own.
When a transfer fails, iSub should replace the prior partial copy once the transfer completes successfully rather than appending to it.
It may be possible that this bad-file-cached problem could also be triggered when the device switches from wifi to cellular data (or vice versa) in the middle of a song download when there is a different "Maximum audio bitrate" configured in settings. Still related to connection resets.