Skip to content

[SDK-2550] Add networking client timeout configuration#354

Merged
jimmyjames merged 1 commit intomasterfrom
net-client-timeout-config
May 7, 2021
Merged

[SDK-2550] Add networking client timeout configuration#354
jimmyjames merged 1 commit intomasterfrom
net-client-timeout-config

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

Changes

Adds the ability to configure connect and read timeouts for both the ManagementAPI and AuthAPI clients through the existing HttpOptions:

HttpOptions options = new HttpOptions();
options.setConnectTimeout(15); // default is 10 seconds
options.setReadTimeout(5); // default is 10 seconds

AuthAPI authAPI = new AuthAPI("{CLIENT_ID}", "{CLIENT_SECRET}", options);
ManagementAPI mgmtAPI = new ManagementAPI("{DOMAIN}", "{TOKEN}", options);

@jimmyjames jimmyjames added this to the v1-Next milestone May 6, 2021
@jimmyjames jimmyjames requested a review from a team as a code owner May 6, 2021 16:09
@jimmyjames jimmyjames merged commit 4f851c8 into master May 7, 2021
@jimmyjames jimmyjames modified the milestones: v1-Next, 1.31.0 May 10, 2021
@jimmyjames jimmyjames mentioned this pull request May 10, 2021
@evansims evansims deleted the net-client-timeout-config branch July 5, 2022 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants