Skip to content

Add a connectTimeout option to the TSC builder and DeterministicClient#163

Merged
coltfred merged 3 commits into
mainfrom
add-connect-timeout
May 19, 2026
Merged

Add a connectTimeout option to the TSC builder and DeterministicClient#163
coltfred merged 3 commits into
mainfrom
add-connect-timeout

Conversation

@coltfred
Copy link
Copy Markdown
Member

The previous single timeout forced callers to choose one value for both connect and read. That made it awkward to fail fast on unreachable TSP hosts while still allowing a longer window for slow responses. The new option lets callers tune these independently without changing defaults for existing users.

  • Add a configurable connectTimeout for TSP requests, separate from the existing read timeout.
  • TenantSecurityClient.Builder gains connectTimeoutMs(int). When unset, the connect timeout continues to follow timeoutMs(int), preserving the prior single-timeout behavior.
  • DeterministicTenantSecurityClient can be constructed directly using an independent readTimeout and connectTimeout values.
  • Fixed a couple comments.

@coltfred coltfred merged commit 03eb710 into main May 19, 2026
7 checks passed
@coltfred coltfred deleted the add-connect-timeout branch May 19, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants