> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblContextSettingsGetHttpRetryDelay

> XblContextSettingsGetHttpRetryDelay

Gets the HTTP retry delay in seconds.

## Syntax

```cpp theme={null}
HRESULT XblContextSettingsGetHttpRetryDelay(  
         XblContextHandle context,  
         uint32_t* delayInSeconds  
)  
```

### Parameters

*context*   \_In\_\
Type: [XblContextHandle](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

XBOX live context that the settings are associated with.

*delayInSeconds*   \_Out\_\
Type: uint32\_t\*

Passes back the retry delay in seconds. Retries are delayed using an exponential back off. By default, it will delay 2 seconds then the next retry will delay 4 seconds, then 8 seconds, and so on up to a max of 1 min until either the call succeeds or the http\_timeout\_window is reached, at which point the call will fail. The delay is also jittered between the current and next delay to spread out service load. The default for http\_timeout\_window is 20 seconds and can be changed using XblContextSettingsSetHttpTimeoutWindow.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

If the service returns an HTTP error with a "Retry-After" header, then all future calls to that API will immediately fail with the original error without contacting the service until the "Retry-After" time has been reached. \
&#x20;Idempotent service calls are retried when a network error occurs or the server responds with one of these HTTP status codes:\
&#x20;408 (Request Timeout)\
&#x20;429 (Too Many Requests)\
&#x20;500 (Internal Server Error)\
&#x20;502 (Bad Gateway)\
&#x20;503 (Service Unavailable)\
&#x20;504 (Gateway Timeout)\


## Requirements

**Header:** xbox\_live\_context\_settings\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[xbox\_live\_context\_settings\_c](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)


## Related topics

- [xbox_live_context_settings_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)
- [XblContextSettingsSetHttpRetryDelay](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
- [XblContextSettingsGetHttpTimeoutWindow](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsGetLongHttpTimeout](https://docs.xbox.com/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetlonghttptimeout.md)
- [HCHttpCallRequestGetRetryDelay](https://docs.xbox.com/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
