Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't close the client instance in DropwizardApacheConnector #1232
Jersey expects that we create a new instance of the Apache HTTP client every time, when we create a new instance of the connector.
The fix is to not close the client in the connector. We can rely on the fact, that the client is managed by Dropwizard environment and it will be closed, when the application will be shut down.
Also users of Apache HTTP Client keep the ability to close the client manually, if they want to.