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

# XblContextSettingsGetHttpTimeoutWindow

> XblContextSettingsGetHttpTimeoutWindow

# XblContextSettingsGetHttpTimeoutWindow

Gets the HTTP timeout window in seconds.

## Syntax

```cpp theme={null}
HRESULT XblContextSettingsGetHttpTimeoutWindow(  
         XblContextHandle context,  
         uint32_t* timeoutWindowInSeconds  
)  
```

### Parameters

*context*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX live context that the settings are associated with.

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

Passes back the timeout window in seconds. The default is 20 seconds.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

This controls how long to spend attempting to retry idempotent service calls before failing.<br /><br /> Idempotent service calls are retried when a network error occurs or the server responds with one of these HTTP status codes:<br /> 408 (Request Timeout)<br /> 429 (Too Many Requests)<br /> 500 (Internal Server Error)<br /> 502 (Bad Gateway)<br /> 503 (Service Unavailable)<br /> 504 (Gateway Timeout)<br />

## Requirements

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

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[xbox\_live\_context\_settings\_c](/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members)


## Related topics

- [Best practices for calling XBOX services](/services/xbox-services/develop/best-practices/live-best-practices-calling-xbl.md)
- [XblContextSettingsSetHttpTimeoutWindow](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpRetryDelay](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttpretrydelay.md)
- [XblContextSettingsGetLongHttpTimeout](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetlonghttptimeout.md)
- [XblContextSettingsGetWebsocketTimeoutWindow](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetwebsockettimeoutwindow.md)
