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

Add http connections count #528

Merged
merged 3 commits into from
Jul 3, 2019
Merged

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Jul 2, 2019

Record http connections count for diagnostic purpose

@Vlatombe Vlatombe requested a review from jglick July 2, 2019 16:07
OkHttpClient httpClient = ((HttpClientAware) kClient).getHttpClient();
Dispatcher dispatcher = httpClient.dispatcher();
runningCallsCount.addAndGet(dispatcher.runningCallsCount());
queuedCallsCount.addAndGet(dispatcher.queuedCallsCount());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easier to use a plain old for loop and local int variables.

@Vlatombe Vlatombe merged commit 929fbdd into jenkinsci:master Jul 3, 2019
@Vlatombe Vlatombe deleted the httpclient-counts branch July 3, 2019 07:21
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.

2 participants