> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblContextSettingsGetHttpRetryDelay

> XblContextSettingsGetHttpRetryDelay

# XblContextSettingsGetHttpRetryDelay

Obtiene el retraso de reintento HTTP en segundos.

## Sintaxis

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

### Parámetros

*context*   \_In\_\
Tipo: [XblContextHandle](https://docs.xbox.com/es/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

Contexto de XBOX live al que está asociada la configuración.

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

Devuelve el retraso de reintento en segundos. Los reintentos se retrasan mediante una retirada exponencial. De forma predeterminada, el retraso será de 2 segundos, el siguiente reintento se retrasará 4 segundos, luego 8 segundos y así sucesivamente hasta un máximo de 1 minuto, hasta que la llamada se realice correctamente o se alcance el valor de http\_timeout\_window, momento en el que la llamada dará error. El retraso también se ajusta aleatoriamente entre el retraso actual y el siguiente para distribuir la carga del servicio. El valor predeterminado de http\_timeout\_window es de 20 segundos y se puede cambiar mediante XblContextSettingsSetHttpTimeoutWindow.

### Valor devuelto

Tipo: HRESULT

Código de retorno HRESULT de esta operación de API.

## Comentarios

Si el servicio devuelve un error HTTP con un encabezado "Retry-After", todas las llamadas futuras a esa API darán error inmediatamente con el error original sin ponerse en contacto con el servicio hasta que se haya alcanzado el tiempo indicado en "Retry-After". \
&#x20;Las llamadas de servicio idempotentes se reintentan cuando se produce un error de red o cuando el servidor responde con uno de estos códigos de estado HTTP:\
&#x20;408 (Request Timeout)\
&#x20;429 (Too Many Requests)\
&#x20;500 (Internal Server Error)\
&#x20;502 (Bad Gateway)\
&#x20;503 (Service Unavailable)\
&#x20;504 (Gateway Timeout)\


## Requisitos

**Encabezado:** xbox\_live\_context\_settings\_c.h

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

## Consulte también

[xbox\_live\_context\_settings\_c](https://docs.xbox.com/es/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)


## Related topics

- [xbox_live_context_settings_c](https://docs.xbox.com/es/reference/live/xsapi-c/xbox_live_context_settings_c/xbox_live_context_settings_c_members.md)
- [XblContextSettingsSetHttpRetryDelay](https://docs.xbox.com/es/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingssethttpretrydelay.md)
- [XblContextSettingsGetHttpTimeoutWindow](https://docs.xbox.com/es/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgethttptimeoutwindow.md)
- [XblContextSettingsGetLongHttpTimeout](https://docs.xbox.com/es/reference/live/xsapi-c/xbox_live_context_settings_c/functions/xblcontextsettingsgetlonghttptimeout.md)
- [HCHttpCallRequestGetRetryDelay](https://docs.xbox.com/es/reference/live/httpclient/httpprovider/functions/hchttpcallrequestgetretrydelay.md)
