jenkinsci / jenkinsci/java-client-api

Potential connection leak

Abierto
#453 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
913
Forks
466
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
java
Área
api
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.