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
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This library works the same as the normal [`fetch api`](https://developer.mozill
22
22
23
23
Without configuring any parameters, the retry behavior will be as follows:
24
24
- retry for 60s
25
-
- retry inital delay of 100ms with exponential backoff
25
+
- retry inital delay of 100ms with exponential backoff, configurable as a multiplier defaulting to 2
26
26
- retry only on 5xx response
27
27
- socket timeout of 30s
28
28
```js
@@ -147,6 +147,9 @@ async main() {
147
147
148
148
Disabling retry behavior will not prevent the usage of other options set on the `options` object.
149
149
150
+
### Additional notes on retry duration
151
+
152
+
If the fetch is unsucessful, the retry logic determines how long it will wait before the next attempt. If the time remaining will exceed the total time allowed by retryMaxDuration then another attempt will not be made. There are examples of how this works in the testing code.
0 commit comments