Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuning OkHttpClient settings #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Tuning OkHttpClient settings #91

wants to merge 2 commits into from

Conversation

jorkey
Copy link

@jorkey jorkey commented Jul 25, 2023

A new static OkHttpClientBuilder object has been added. It defines default OkHttpClient.Builder.


We can change the settings of OkHttpClient as on that sample:
OkHttpClientBuilder.setBuilder(new OkHttpClient.Builder().pingInterval(Duration.ofSeconds(10)));


This must be done before static objects *ClientSingleton are initialized.

@skyer-linlin
Copy link

Good job, buddy!

I found Binance connector client need a extra constructor to set up custom httpClient or to use http connection pool when I used connector in a SpringBoot application.

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.

3 participants