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

# XblContextSettingsSetHttpTimeoutWindow

> XblContextSettingsSetHttpTimeoutWindow

# XblContextSettingsSetHttpTimeoutWindow

HTTP タイムアウト ウィンドウを秒単位で設定します。

## 構文

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

### パラメーター

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

設定が関連付けられている XBOX Live コンテキスト。

*timeoutWindowInSeconds*   \_In\_\
型: uint32\_t

タイムアウト ウィンドウを秒単位で指定します。既定は 20 秒です。再試行を無効にするには 0 に設定します。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

これは、失敗するまでにべき等なサービス呼び出しの再試行にどの程度時間を費やすかを制御します。<br /><br /> ネットワーク エラーが発生した場合、またはサーバーが次のいずれかの HTTP ステータス コードで応答した場合に、べき等なサービス呼び出しが再試行されます:<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 />

## 要件

**ヘッダー:** xbox\_live\_context\_settings\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

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


## Related topics

- [XblContextSettingsSetHttpRetryDelay](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
- [XblContextSettingsGetHttpRetryDelay](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttpretrydelay.md)
- [XBOX services 呼び出しのベストプラクティス](/ja-jp/services/xbox-services/develop/best-practices/live-best-practices-calling-xbl.md)
- [XblContextSettingsGetHttpTimeoutWindow](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsSetLongHttpTimeout](/ja-jp/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssetlonghttptimeout.md)
