Commit 9f647e4
committed
Re-enable retries on low-level errors
Let the `retries` parameter only set the number of times to retry on bad
HTTP status codes.
When overriding the `total` parameter to `urllib3.util.retry.Retry`, we
were disabling lower-level retries built into urllib by
defualt (connection error retries, read error retries, and redirects).1 parent d118cbf commit 9f647e4
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments