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

# PFHttpRetrySettings

> 定义 PlayFab HTTP 请求重试设置的结构。

定义 PlayFab HTTP 请求重试设置的结构。

## 语法

```cpp theme={null}
struct PFHttpRetrySettings {  
    bool allowRetry;  
    uint32_t minimumRetryDelayInSeconds;  
    uint32_t timeoutWindowInSeconds;  
}  
```

### 成员

**`allowRetry`**   bool

控制 SDK 是否应自动重试特定错误。某些错误永远不会在内部处理，并且始终会直接返回给客户端。默认值为 'true'。

**`minimumRetryDelayInSeconds`**   uint32\_t

发生 HTTP 失败后，SDK 在重试调用之前等待的最短秒数。默认值和最小值均为 2 秒。

**`timeoutWindowInSeconds`**   uint32\_t

SDK 在返回到客户端之前尝试重试 HTTP 请求的最长秒数。默认值为 20 秒。

## 要求

**头文件：** PFHttpConfig.h

## 另请参阅

[PFHttpConfig 成员](/zh-CN/services/playfab/api-references/c/pfhttpconfig/pfhttpconfig_members)


## Related topics

- [PFSetHttpRetrySettings](/zh-CN/services/playfab/api-references/c/pfhttpconfig/functions/pfsethttpretrysettings.md)
- [PFGetHttpRetrySettings](/zh-CN/services/playfab/api-references/c/pfhttpconfig/functions/pfgethttpretrysettings.md)
- [服务 C API 概览 - PFHttpConfig.h](/zh-CN/services/playfab/api-references/c/pfhttpconfig/pfhttpconfig_members.md)
- [HTTP 配置](/zh-CN/services/playfab/sdks/c/http-config.md)
- [Game Saves 错误处理常见问题](/zh-CN/services/playfab/player-progression/game-saves/error-handling-faq.md)
