-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure quiet period for shutting down Netty resources #24538
Comments
Before we implement this, I'd like to run things by @violetagg to make sure we're on the right track. Since reactor/reactor-netty#860, there are additional methods on In Spring Boot, we're creating a I've got a couple of questions regarding this new configuration option:
|
Temporary workaround for @AfterAll
void destroyReactorResourceFactory() {
if (factory.isUseGlobalResources()) {
HttpResources.disposeLoopsAndConnectionsLater(Duration.ofMillis(50), Duration.ofMillis(50)).block();
} else {
this.factory.destroy();
}
} |
You can run the server with
So
First stop the
|
As of reactor/reactor-netty#860, Reactor Netty allows to configure the quiet period when disposing of the Netty resources.
We should expose this as an option in
ReactorResourceFactory
, as the default quiet period of 2 seconds can be a problem in test suites or while developing an application (e.g. Spring Boot devtools).The text was updated successfully, but these errors were encountered: