|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
* Copyright 2012-2021 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -169,6 +169,7 @@ public class JettyReactiveWebServerFactory extends AbstractReactiveWebServerFact
|
|
|
|
InetSocketAddress address = new InetSocketAddress(getAddress(), port);
|
|
|
|
InetSocketAddress address = new InetSocketAddress(getAddress(), port);
|
|
|
|
Server server = new Server(getThreadPool());
|
|
|
|
Server server = new Server(getThreadPool());
|
|
|
|
server.addConnector(createConnector(address, server));
|
|
|
|
server.addConnector(createConnector(address, server));
|
|
|
|
|
|
|
|
server.setStopTimeout(0);
|
|
|
|
ServletHolder servletHolder = new ServletHolder(servlet);
|
|
|
|
ServletHolder servletHolder = new ServletHolder(servlet);
|
|
|
|
servletHolder.setAsyncSupported(true);
|
|
|
|
servletHolder.setAsyncSupported(true);
|
|
|
|
ServletContextHandler contextHandler = new ServletContextHandler(server, "/", false, false);
|
|
|
|
ServletContextHandler contextHandler = new ServletContextHandler(server, "/", false, false);
|
|
|
|