Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't shut down asynchronous executor in Jersey
If a user customized a Jersey client, Jersey creates a new copy of the instance. Jersey has a mechanism for detecting leaks, and Jetty will invoke the `dispose` method on the old client. Unfortunately, during a copy the executor is shared. Therefore, the user will not be able to perform async requests anymore. The executor is managed by the Dropwizard environment, so we can leave with the fact that it's closed by a kill signal. Fixes #2218
- Loading branch information
Showing
4 changed files
with
56 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
dropwizard-client/src/test/java/io/dropwizard/client/DropwizardExecutorProviderTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters