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

# HCHttpCallRequestGetTimeoutWindow

> HCHttpCallRequestGetTimeoutWindow

# HCHttpCallRequestGetTimeoutWindow

设置 HTTP 超时窗口（以秒为单位）。

## Syntax

```cpp theme={null}
HRESULT HCHttpCallRequestGetTimeoutWindow(  
         HCCallHandle call,  
         uint32_t* timeoutWindowInSeconds  
)  
```

### Parameters

*call*   \_In\_opt\_\
Type: HCCallHandle

HTTP 调用的句柄。传入 nullptr 可获取用于未来调用的默认值。

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

超时窗口（以秒为单位）。

### Return value

Type: HRESULT

此 API 操作的结果代码。可能的值为 S\_OK、E\_INVALIDARG 或 E\_FAIL。

## Remarks

这控制在失败之前，尝试重试幂等服务调用所花费的时长。<br /> 默认值为 20 秒。<br /><br /> 当发生网络错误或服务器返回以下 HTTP 状态代码之一时，将重试幂等服务调用：<br /> 408（请求超时）<br /> 429（请求过多）<br /> 500（内部服务器错误）<br /> 502（错误网关）<br /> 503（服务不可用）<br /> 504（网关超时）<br />

## Requirements

**Header:** httpProvider.h

**Library:** libHttpClient.GDK.lib

## See also

[httpProvider](/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallRequestSetTimeoutWindow](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeoutwindow.md)
- [HCHttpCallRequestGetTimeout](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgettimeout.md)
- [HCHttpCallRequestSetTimeout](/zh-CN/reference/live/httpclient/httpclient/functions/hchttpcallrequestsettimeout.md)
- [XblContextSettingsGetHttpTimeoutWindow](/zh-CN/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [HCHttpCallRequestGetRetryDelay](/zh-CN/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
