HCHttpCallRequestSetTimeoutWindow

Sets the HTTP timeout window in seconds.

Syntax

HRESULT HCHttpCallRequestSetTimeoutWindow(  
         HCCallHandle call,  
         uint32_t timeoutWindowInSeconds  
)  

Parameters

call   _In_opt_
Type: HCCallHandle

The handle of the HTTP call. Pass nullptr to set the default for future calls

timeoutWindowInSeconds   _In_
Type: uint32_t

The timeout window in seconds

Return value

Type: HRESULT

Result code for this API operation. Possible values are S_OK, or E_FAIL.

Remarks

This controls how long to spend attempting to retry idempotent service calls before failing.
The default is 20 seconds.

Idempotent service calls are retried when a network error occurs or the server responds
with one of these HTTP status codes:
408 (Request Timeout)
429 (Too Many Requests)
500 (Internal Server Error)
502 (Bad Gateway)
503 (Service Unavailable)
504 (Gateway Timeout)

This must be called prior to calling HCHttpCallPerformAsync.

Requirements

Header: httpClient.h

Library: libHttpClient.141.GSDK.C.lib

See also

httpClient