Skip to content

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

Open
coltfred wants to merge 3 commits into
mainfrom
add-connect-timeout
Open

Add a connectTimeout option to the TSC builder and DeterministicClient#163
coltfred wants to merge 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.

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