Skip to content

Conversation

@adamjohnwright
Copy link

Fixed CloseableHttpResponse not being closed in the report() method. This was causing connections to remain in CLOSE_WAIT state when reporting PDF generation metrics to the report service.

Changed to use try-with-resources pattern to ensure both CloseableHttpClient and CloseableHttpResponse are properly closed after use.

🤖 Generated with Claude Code

@EliotRagueneau, @jweiser and I worked on this repo in addition to the content service where we have another PR. We are trying to fix the CLOSE_WAIT connections. We realize that you are on vacation. If you are not able to work on this that is fine. What we did so far was change the code and compiled it. If we need to we would be willing to roll it out into production. We just need to know if what is on production is from the latest commit on the master branch. And if there is anything else we should know about deploying it? we will make sure to test to see that it is running correctly and monitor it when it is deployed.

Fixed CloseableHttpResponse not being closed in the report() method.
This was causing connections to remain in CLOSE_WAIT state when reporting
PDF generation metrics to the report service.

Changed to use try-with-resources pattern to ensure both CloseableHttpClient
and CloseableHttpResponse are properly closed after use.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@EliotRagueneau
Copy link
Contributor

Hi Adam,
on production right now the live branch is the feature/new-pwb which does contain 2 commits that aren't on master.

Claude suggestions looks ok to me, I think you can try it. Ideally first in dev to make sure it doesn't break anything before moving it to production to see if it really fixes the issue though

@adamjohnwright
Copy link
Author

@EliotRagueneau thanks. I will look into doing this with @jweiser asap. Thanks for taking a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants