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
[core-http] Throttling retry policy fix in core-http (Azure#15832)
FixesAzure#15796
## Problem
The throttlingRetryPolicy in core-http has the potential to retry for an extended period if the service continues returning "retry after" headers on subsequent calls.
Here's the snippet of code that handles the "retry after" retries:
```typescript
public async sendRequest(httpRequest: WebResource): Promise<HttpOperationResponse> {
return this._nextPolicy.sendRequest(httpRequest.clone()).catch((err) => {
// other code elided....
return delay(delayInMs).then((_: any) => this.sendRequest(httpRequest.clone()));
```
## Solution
Update delay such that it respects abort signal.
Similar to what I had to do for app-config at Azure#15721
Copy file name to clipboardExpand all lines: sdk/core/core-http/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
### Fixed
16
16
17
17
- Fixed an issue where `proxySettings` does not work when there is username but no password [Issue 15720](https://github.com/Azure/azure-sdk-for-js/issues/15720)
18
+
- Throttling retry policy respects abort signal [#15796](https://github.com/Azure/azure-sdk-for-js/issues/15796)
0 commit comments