Skip to content

Commit

Permalink
clarify what max_network_retries does
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Aug 14, 2019
1 parent a089021 commit 4f02c5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,16 @@ stripe.proxy = "https://user:pass@example.com:1234"

### Configuring Automatic Retries

Number of automatic retries on requests that fail due to an intermittent
network problem can be configured:
You can enable automatic retries on requests that fail due to a transient
problem by configuring the maximum number of retries:

```python
stripe.max_network_retries = 2
```

Various errors can trigger a retry, for example a connection error or a timeout,
but also an API response whose HTTP status code is `409`.

[Idempotency keys][idempotency-keys] are automatically generated and added to
requests, when not given, to guarantee that retries are safe.

Expand Down

0 comments on commit 4f02c5c

Please sign in to comment.