jenkinsci / jenkinsci/java-client-api

Potential connection leak

Offen
#453 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
913
Forks
466
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at jenkins-client/src/main/java/com/offbytwo/jenkins/client/JenkinsHttpClient.java around line 173 and inspect how the entity is consumed and the connection released. Verify the failure path when entity consumption throws IOException, then use the repository's existing test setup to confirm the connection is released in that case.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.