-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Offload retry logic to requests and urllib3.
Urllib3 comes with good retry logic, which is exposed through the requests `HTTPAdapter`. Attach retry options to the session adapters and delete custom retry logic from robobrowser.
- Loading branch information
Showing
2 changed files
with
5 additions
and
33 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
Wouldn't it be more intuitive to name the param "retries" instead of "tries"? Tries implies that if I set it to 1 there be no retries and I would have to set it to at least 2 for a retry. We shouldn't assume that the first attempt is not a try.