python-for-android
python-for-android copied to clipboard
[WIP] Make downloads less bad (refactoring & recognizing stale connections)
The general aim of this pull request is to make downloads less bad, both in code and in behavior. I did some refactoring and moving around to clean things up, and I revamped e.g. the http/wget-alike download function to recognize if no new data arrives in 25 seconds and treat that as an error (previously, there was no timeout for stale connections, or it was an insanely long duration)
Still WIP because I want to add some mock testing