> ## 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.

# XblContextSettingsSetLongHttpTimeout

> XblContextSettingsSetLongHttpTimeout

# XblContextSettingsSetLongHttpTimeout

Sets the connect, send, and receive timeouts for HTTP socket operations of long calls such as Title Storage calls.

## Syntax

```cpp theme={null}
HRESULT XblContextSettingsSetLongHttpTimeout(  
         XblContextHandle context,  
         uint32_t timeoutInSeconds  
)  
```

### Parameters

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

XBOX live context that the settings are associated with.

*timeoutInSeconds*   \_In\_\
Type: uint32\_t

The timeout for long HTTP calls in seconds. Default is 5 minutes (300 seconds).

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Calls that take longer than the given timeout are aborted. Take care when setting this to smaller values as some calls like Title Storage may take a few minutes to complete.

## 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

- [XblContextSettingsGetLongHttpTimeout](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetlonghttptimeout.md)
- [XblContextSettingsSetHttpTimeoutWindow](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttptimeoutwindow.md)
- [XblContextSettingsGetHttpTimeoutWindow](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetWebsocketTimeoutWindow](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetwebsockettimeoutwindow.md)
- [XblContextSettingsSetHttpRetryDelay](/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
