Re: HttpEntity cleanup - possible bugs?

2023-08-29 Thread Brent Putman
On 8/29/23 3:48 AM, Oleg Kalnichevski wrote: This code is not about connection clean-up, this code is about connection re-use. The resource clean-up is ensured by closing out the response. Ok, but then why is EntityUtils.consume(entity) being called at all? Seems like it's either necessary

Re: HttpEntity cleanup - possible bugs?

2023-08-29 Thread Oleg Kalnichevski
On Mon, 2023-08-28 at 16:48 -0400, Brent Putman wrote: > Hi, > > Our project was reviewing a reported resource cleanup issue for > leaks, > and we came across a couple of possibly questionable things in the > way > things are handled in CloseableHttpClient for the response handler > variant cod