-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix the OpenshiftClient connection leaks #7793
Fix the OpenshiftClient connection leaks #7793
Conversation
... while reusing a common `OkHttpClient` instance as much as possible (not possible in some cases, like `startExec()`, that involve `InputStreamPumper` and broken pipes). Signed-off-by: David Festal <dfestal@redhat.com>
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
public OpenShiftClientFactory( | ||
OpenshiftWorkspaceEnvironmentProvider workspaceEnvironmentProvider) { | ||
this.httpClient = | ||
HttpClientUtils.createHttpClient(workspaceEnvironmentProvider.getDefaultOpenshiftConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidfestal not sure, but formatting does not look right from the first glance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, it's formatted by the maven formatter plugin afaik
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, cool - sorry than ;-)
ci-build |
Build # 4379 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4379/ to view the results. |
Signed-off-by: David Festal <dfestal@redhat.com>
ci-build |
1 similar comment
ci-build |
Signed-off-by: David Festal <dfestal@redhat.com>
Build # 4381 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/4381/ to view the results. |
ci-build |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4383/ |
What does this PR do?
Fix the OpenshiftClient connection leaks ... while reusing a common
OkHttpClient
instance as much as possible (not possible in some cases, likestartExec()
, that involveInputStreamPumper
and broken pipes).What issues does this PR fix or reference?
This PR is related to the issue discussed here and here, as well as this initial issue of the
OpenshiftConnector
: https://issues.jboss.org/browse/CHE-180It fixes these issues in a way that is compatible with the CHE-5-based OSIO multi-tenant server.