ApiClient.java leaks ResponseBody objects
@gnongsie 已经在做这个了。
开始于 2019年6月15日。
评估
这个 Issue 还没有评估数据。
描述
hello, if you don't call ResponseBody.close() on your ResponseBody objects you are leaking resources. I've just spent time in the debugger tracing a few runs of the sample DownloadReport.java from your samples repository. ApiClient is clearly not closing the ResponseBody. The only call to close() appears in ApiClient.handleResponse..and it is conditional: only runs if the HTTP status code is 204 (no content ironically). There is a reason ResponseBody implements Closeable. Sorry but no time to contribute code.
- 主要语言
- Java
- 星标
- 29
- 派生
- 50
- 平均合并
- 1 小时 30 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CyberSource/cybersource-rest-client-java 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
CyberSource/cybersource-rest-client-java#241 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 2/5 1-3 小时 新手友好度 58/100
-
难度 3/5 1-2 天 新手友好度 42/100
CyberSource/cybersource-rest-client-java#235 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
查看 CyberSource/cybersource-rest-client-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
apache/rocketmq-dashboard#6716 ·
维护者通常 3 天内回复
-
DefaultRedisList.get(int) does not reject an index equal to the list size可能已有人在做 @ryujungkyun 今天认领。 未关闭status: waiting-for-triage
难度 1/5 1 小时以内 新手友好度 68/100
spring-projects/spring-data-redis#3471 ·
维护者通常 5 天内回复
-
:maddi-inspection-kotlin:test runs out of heap in a full maddi test run; exit 1 with no failing test未关闭build/ci front-end:kotlin
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
uwolfer/gerrit-intellij-plugin#768 ·
维护者通常 1 天内回复