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

# HCHttpCallRequestGetRetryDelay

> HCHttpCallRequestGetRetryDelay

# HCHttpCallRequestGetRetryDelay

Obtém o atraso de repetição HTTP em segundos. O atraso padrão e mínimo é de 2 segundos.

## Sintaxe

```cpp theme={null}
HRESULT HCHttpCallRequestGetRetryDelay(  
         HCCallHandle call,  
         uint32_t* retryDelayInSeconds  
)  
```

### Parâmetros

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

O identificador da chamada HTTP. Passe nullptr para obter o padrão para chamadas futuras.

*retryDelayInSeconds*   \_In\_\
Tipo: uint32\_t\*

O atraso de repetição em segundos.

### Valor retornado

Tipo: HRESULT

Código de resultado desta operação de API. Os valores possíveis são S\_OK, E\_INVALIDARG ou E\_FAIL.

## Comentários

As repetições são atrasadas usando uma retirada exponencial. Por padrão, o atraso será de 2 segundos, a próxima repetição terá um atraso de 4 segundos, depois 8 segundos e assim por diante, até um máximo de 1 min, até que a chamada seja bem-sucedida ou a janela de tempo limite HTTP seja atingida, momento em que a chamada falhará. O atraso também tem uma variação aleatória entre o atraso atual e o próximo para distribuir a carga do serviço. O padrão da janela de tempo limite HTTP é de 20 segundos e pode ser alterado usando HCSettingsSetTimeoutWindow()<br /><br /> 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 /><br /> As chamadas de serviço idempotentes são repetidas quando ocorre um erro de rede ou o servidor responde <br /> com um destes códigos de status HTTP:<br /> 408 (Tempo Limite da Solicitação)<br /> 429 (Excesso de 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:** httpProvider.h

**Biblioteca:** libHttpClient.GDK.lib

## Confira também

[httpProvider](/pt-BR/reference/live/httpclient/httpprovider/httpprovider_members)


## Related topics

- [HCHttpCallRequestSetRetryDelay](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretrydelay.md)
- [HCHttpCallRequestGetRetryAllowed](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretryallowed.md)
- [XblContextSettingsGetHttpRetryDelay](/pt-BR/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttpretrydelay.md)
- [HCHttpCallRequestGetRetryCacheId](/pt-BR/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrycacheid.md)
- [HCHttpCallRequestSetRetryAllowed](/pt-BR/reference/live/httpclient/httpclient/functions/hchttpcallrequestsetretryallowed.md)
