You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I currently testing Spring Boot 2.0.0.M2 and I was wondering how to customize Jetty Server with JettyReactiveWebServerFactory ?
With previous version I used JettyServletWebServerFactory which allowed to add Jetty Customizers. I was able to customize port, thread pool size and Jetty behaviour like remove ServerVersion Http header, enable Jetty request logging and so on. Ex :
With the reactive version, I still can configure port and pool but I can't found how to customize other specific setting of Jetty server such as enabling logging of requests or disable some headers
@BeanpublicJettyReactiveWebServerFactorywebServerFactory(BeanFactorybeanFactory) {
JettyReactiveWebServerFactoryfactory = newJettyReactiveWebServerFactory();
factory.setPort(8080);
finalQueuedThreadPoolthreadPool = newQueuedThreadPool(applicationConfig.getServerMaxThreads(), applicationConfig.getServerMinThreads(),
applicationConfig.getServerIdleTimeout(), newBlockingArrayQueue<>(100, 100));
threadPool.setName("http");
factory.setThreadPool(threadPool);
// :-( Not available on reactive version : factory.addServerCustomizers(...)returnfactory;
}
Is it intentional ? Is there any kind of limitation concerning customization of Jetty when using the reactive version ?
Thank in advance for your help.
The text was updated successfully, but these errors were encountered:
wilkinsona
changed the title
How to customize Jetty Server when using JettyReactiveWebServerFactory with Spring Boot 2
Provide the same customisation options for Reactive Web Servers as Servlet Web Servers
Jun 21, 2017
The reactive factories for Tomcat and Undertow are also missing some customiser support: Connector customisers for the former and DeploymentInfo customisers for the latter.
Perhaps that was intentional, but I can't think of a reason why such customisation shouldn't be supported in the reactive case.
Hi,
I currently testing Spring Boot 2.0.0.M2 and I was wondering how to customize Jetty Server with
JettyReactiveWebServerFactory
?With previous version I used
JettyServletWebServerFactory
which allowed to add Jetty Customizers. I was able to customize port, thread pool size and Jetty behaviour like remove ServerVersion Http header, enable Jetty request logging and so on. Ex :With the reactive version, I still can configure port and pool but I can't found how to customize other specific setting of Jetty server such as enabling logging of requests or disable some headers
Is it intentional ? Is there any kind of limitation concerning customization of Jetty when using the reactive version ?
Thank in advance for your help.
The text was updated successfully, but these errors were encountered: