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
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:
publicasyncsendRequest(httpRequest: WebResource): Promise<HttpOperationResponse>{returnthis._nextPolicy.sendRequest(httpRequest.clone()).catch((err)=>{// other code elided....returndelay(delayInMs).then((_: any)=>this.sendRequest(httpRequest.clone()));
Fixes#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 #15721
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:
TODO
The text was updated successfully, but these errors were encountered: