m-van-tilburg commented on issue #3: Release CloseableHttpResponse
URL: https://github.com/apache/olingo-odata4/pull/3#issuecomment-509271611
 
 
   @laszlohordos Looking at (currently) the only implementation of 
`CloseableHttpResponse`, namely 
`org.apache.http.impl.execchain.HttpResponseProxy` calling `close()` will not 
release the connection back to the pool but it will close the connection. To 
release the connection back the pool you can use 
`org.apache.http.util.EntityUtils.consume(super.res.getEntity())`. The 
connections in the connection pool will be closed when the 
`PoolingHttpClientConnectionManager` is closed/shutdown.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to