(root)/ – Rev 36295
Rev 36294 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36295 2026-04-17 14:57:15
- Author: amit
- Log message:
- Plug response-entity leak in RestClient
Apache HttpClient connections are released back to the PoolingConnectionManager
only when the response entity is fully consumed. Error paths in execute(),
executeMandii(), and executeJson() threw before consumeQuietly was called,
leaking pool slots and accumulating CLOSE_WAIT sockets against Solr, Tomcat,
and external APIs. Wrap each in try/finally with EntityUtils.consumeQuietly
so the connection is always returned. Methods that return raw HttpResponse
(getResponse, postResponse) are still caller-close responsibility.