- Documentation
Torch Log Service
SDK reference
iOS SDK
Previous versions of the iOS SDK
Configure timeout and retry strategies (iOS SDK legacy)
Previous versions of the iOS SDK
Configure timeout and retry strategies (iOS SDK legacy)
Configure timeout and retry strategies (iOS SDK legacy)
This document describes how to adjust the timeout duration and retry strategies through Client configuration.
Set the request timeout duration
You can set the timeout duration in milliseconds in the Client configuration. If the server does not respond within the specified duration, the SDK will return immediately and provide an empty response.
The following example shows how to configure a request timeout of 100 milliseconds.
Configure SDK retries
By default, the TLS iOS SDK includes a built-in retry mechanism for HTTP errors such as 429 and 500, which is enabled by default. To disable the retry mechanism, configure disableRetry in the config.
Last updated: 2026.10.28 14:22:45