[ https://issues.apache.org/jira/browse/CXF-5144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795073#comment-13795073 ]
Sergey Beryozkin commented on CXF-5144: --------------------------------------- The requirement to auto-close InputStream in Response.readEntity is now an accepted JAX-RS 2.0 spec issue, it breaks working with Source classes, lazy loading DOMs, etc, so we really can't make it a default value > JAX-RS Client Proxy-based API connection leak > --------------------------------------------- > > Key: CXF-5144 > URL: https://issues.apache.org/jira/browse/CXF-5144 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Reporter: James Wu > Assignee: Sergey Beryozkin > Fix For: 2.6.10, 2.7.7, 3.0.0 > > > JAX-RS Client Proxy-based API could not reuse the TCP connection, even though > with keep-alive. The reason is the InputStream did not be closed when the > response body had been handled in ClientProxyImpl.handleResponse(), so do > Webclient.handleResponse(). -- This message was sent by Atlassian JIRA (v6.1#6144)