jenkinsci / jenkinsci/java-client-api

Potential connection leak

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
913
Forks
466
PR merge metrics
No merged PRs in 30d

Description

https://github.com/jenkinsci/java-client-api/blob/fe2601a77733887a0cdfa4d20d46997765e8e8ca/jenkins-client/src/main/java/com/offbytwo/jenkins/client/JenkinsHttpClient.java#L173

If there is an issue while consuming the entity, it will throw an IOException before the connection is released. I would consider using EntityUtils.consumeQuietly(...) instead to swallow any possible exception and ensure the connection is released.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.