You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36053c7
Browse filesBrowse the repository at this point in the historyBrowse files
- Rename the connection/retry/timeout config to flat rest.client.* keys (rest.client.request-timeout, rest.client.max-retries, rest.client.retry-backoff-factor), aligning naming with the Java HTTPClient while keeping seconds and a backoff-factor option.
- Use requests' DEFAULT_RETRIES and drop the None branch in the adapter constructor.
- Extract a helper to remove the repeated parse-and-validate logic across the three properties.
- Retry idempotent PUT and DELETE in addition to GET/HEAD/OPTIONS.
| connection.timeout | 60 | Per-request timeout in seconds. Must be a positive number. |
370
-
| connection.retries | 5 | Number of retry attempts for transient failures. Must be non-negative. |
371
-
| connection.backoff-factor | 1.0 | Backoff factor between retry attempts. Must be non-negative. See [`urllib3` Retry docs](https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html#urllib3.util.Retry) for the formula. |
| rest.client.request-timeout | 60 | Timeout in seconds, applied as a single value to the whole request. Must be a positive number. |
369
+
| rest.client.max-retries | 5 | Number of retry attempts for transient failures. Must be non-negative. |
370
+
| rest.client.retry-backoff-factor | 1.0 | Backoff factor between retry attempts. Must be non-negative. See [`urllib3` Retry docs](https://urllib3.readthedocs.io/en/latest/reference/urllib3.util.html#urllib3.util.Retry) for the formula. |
372
371
373
-
Retries are applied to idempotent methods only (`GET`, `HEAD`, `OPTIONS`) and to the
372
+
Retries are applied to idempotent methods only (`GET`, `HEAD`, `OPTIONS`, `PUT`, `DELETE`) and to the
374
373
transient HTTP status codes `429`, `500`, `502`, `503`, `504`. Other failures are not retried.
0 commit comments