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

# XblContextSettingsGetHttpRetryDelay

> XblContextSettingsGetHttpRetryDelay

# XblContextSettingsGetHttpRetryDelay

Obtém o atraso de nova tentativa HTTP em segundos.

## Sintaxe

```cpp theme={null}
HRESULT XblContextSettingsGetHttpRetryDelay(  
         XblContextHandle context,  
         uint32_t* delayInSeconds  
)  
```

### Parâmetros

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

Contexto do XBOX Live ao qual as configurações estão associadas.

*delayInSeconds*   \_Out\_\
Tipo: uint32\_t\*

Retorna o atraso de nova tentativa em segundos. As novas tentativas são atrasadas usando uma retirada exponencial. Por padrão, o atraso será de 2 segundos, a próxima tentativa terá atraso de 4 segundos, depois 8 segundos e assim por diante, até um máximo de 1 minuto, até que a chamada seja bem-sucedida ou que o http\_timeout\_window seja atingido, momento em que a chamada falhará. O atraso também recebe uma variação aleatória entre o atraso atual e o próximo para distribuir a carga do serviço. O padrão de http\_timeout\_window é 20 segundos e pode ser alterado usando XblContextSettingsSetHttpTimeoutWindow.

### Valor retornado

Tipo: HRESULT

Código de retorno HRESULT para esta operação de API.

## Comentários

Se o serviço retornar um erro HTTP com um cabeçalho "Retry-After", todas as chamadas futuras para essa API falharão imediatamente com o erro original, sem contatar o serviço, até que o tempo de "Retry-After" seja atingido. <br /> As chamadas de serviço idempotentes são repetidas quando ocorre um erro de rede ou quando o servidor responde com um destes códigos de status HTTP:<br /> 408 (Tempo Limite da Solicitação)<br /> 429 (Muitas Solicitações)<br /> 500 (Erro Interno do Servidor)<br /> 502 (Gateway Incorreto)<br /> 503 (Serviço Indisponível)<br /> 504 (Tempo Limite do Gateway)<br />

## Requisitos

**Cabeçalho:** xbox\_live\_context\_settings\_c.h

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

## Confira também

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


## Related topics

- [XblContextSettingsSetHttpRetryDelay](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
- [XblContextSettingsGetHttpTimeoutWindow](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsGetLongHttpTimeout](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetlonghttptimeout.md)
- [HCHttpCallRequestGetRetryDelay](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
- [PFHttpRetrySettings](/pt-BR/services/playfab/api-references/c/pfhttpconfig/structs/pfhttpretrysettings.md)
