-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make HTTP retry when the GoPro is overwhelmed (#128)
* switch to retryablehttp to allow downloading many files My HERO12 did not like being asked for more than about 5-7 files simultaneously, but dropped some of the /gp/gpMediaMetadata with a timeout. So after the files where the call to gpMediaMetadata was successfull were downloaded, I got presented with a bunch of errors where it didn't work, and of cause the files were not downloaded. Switching to a retrying approach means that we still hammer the GoPro for the first couple seconds, but allow the requests to proceed later. Some of this is still WIP - the config file has a timeout option, that I dropped since I do not understand enough go to incorporate it, yet. * use the configurable timeout sensibly
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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