This page documents an earlier version of the API client. For the latest version, see Request options.
Not all timeouts are configurable in every API client.
Examples
Parameters
Timeout for the TCP session to connect.Available in all clients except Swift, C#, Go, and Kotlin,Default values:
- PHP, Ruby, JavaScript, Python, Java, and Scala: 2 seconds
- The C# client doesn’t include this timeout. It uses the native .NET HTTP client default of 15 seconds
Timeout for the DNS resolution.Only available for Scala.
This timeout exists as
connectTimeout
in the other API clients.
If both connectTimeout
and dnsTimeout
are set, the smaller value of the two is used.Default values:- Scala: 200 milliseconds
The expected time for an unavailable host to become available.
Affects the time between API client retries.Only available for C#, Java, Go, and Scala.Default values:
- C#, Java, Go, and Scala: 5 minutes
Timeout for the read on the TCP socket.Default values:
- PHP, Ruby: 30 seconds
- JavaScript, Python, Swift, C#, Java, and Go: 5 seconds
- Scala: 2 seconds
- Kotlin: 50 seconds
HTTP timeout for the request.Only available for Scala.Default values:This timeout allows you to configure a global timeout that supersedes all other timeouts.
Since it affects all different timeouts, there’s no default value.
Same as #, but applies only to search operations.Only available for Swift.Default values:
- Swift: 5 seconds
Same as
requestTimeout
, but applies only to write operations.Available in all clients except Scala.Default values:- PHP, Ruby, JavaScript, Python, Swift, C#, Java, Go, and Kotlin: 30 seconds