Open
Description
Related code:
We should check the value of retry-after-ms
before retry-after
. Some services will send both headers, and with the current code we will use retry-after
when a shorter / sub second wait time might be present in retry-after-ms
. Here is the logic other language SDKs follow:
- If the retry-after-ms header key is present, use its value as the number of milliseconds to delay
- Else, if the x-ms-retry-after-ms header key is present, instead use its value as the number of milliseconds to delay
- Else, if the retry-after header key is present, use its value as the number of whole seconds to delay
- Else, fall back to standard fallback heuristics to calculate a retry delay
We should update the code in azure-core to check the retry-after-ms
headers in advance of the retry-after
header.