jenkinsci / jenkinsci/java-client-api

Potential connection leak

Aperta
#453 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
913
Fork
466
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.