From 019440ef5d0c075998766e1767e8eff187a13fdc Mon Sep 17 00:00:00 2001 From: box-sdk-build Date: Wed, 29 Apr 2026 09:01:17 -0700 Subject: [PATCH] docs: add documentation about default timeout (box/box-codegen#944) --- .codegen.json | 2 +- docs/sdkgen/configuration.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.codegen.json b/.codegen.json index 7d8954747..03ebe26f1 100644 --- a/.codegen.json +++ b/.codegen.json @@ -1 +1 @@ -{ "engineHash": "a82031b", "specHash": "d0976fc", "version": "5.8.0" } +{ "engineHash": "18868e7", "specHash": "d0976fc", "version": "5.8.0" } diff --git a/docs/sdkgen/configuration.md b/docs/sdkgen/configuration.md index cb65813c5..ebb79bdcd 100644 --- a/docs/sdkgen/configuration.md +++ b/docs/sdkgen/configuration.md @@ -199,6 +199,7 @@ How timeout handling works: - `connectionTimeoutMs` controls how long the client waits to establish a connection. - `readTimeoutMs` controls how long the client waits for data while reading the response. +- If timeout config is not provided, the SDK uses the OkHttp default timeout settings: connect timeout of 10 seconds, read timeout of 10 seconds, and write timeout of 10 seconds. - Each timeout is optional. If a value is not provided, the client keeps its existing timeout for that setting. - To disable both timeouts, set `connectionTimeoutMs(0L)` and `readTimeoutMs(0L)`. - You can also disable only one timeout by setting just one of them to `0L` and leaving the other configured.