tools: disabled idle in Jetty server (#894)

This commit is contained in:
Ivan Hetman 2024-03-14 20:21:02 +02:00 committed by GitHub
parent 32ae1ab8f0
commit 287333b54e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,7 @@ public class BrowserRunner {
private void runServer() { private void runServer() {
server = new Server(); server = new Server();
var connector = new ServerConnector(server); var connector = new ServerConnector(server);
connector.setIdleTimeout(0);
server.addConnector(connector); server.addConnector(connector);
var context = new ServletContextHandler(ServletContextHandler.SESSIONS); var context = new ServletContextHandler(ServletContextHandler.SESSIONS);

View File

@ -55,6 +55,7 @@ public class ChromeRDPServer {
server = new Server(); server = new Server();
ServerConnector connector = new ServerConnector(server); ServerConnector connector = new ServerConnector(server);
connector.setPort(port); connector.setPort(port);
connector.setIdleTimeout(0);
server.addConnector(connector); server.addConnector(connector);
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS); ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);

View File

@ -120,6 +120,7 @@ public class DevServer {
server = new Server(); server = new Server();
ServerConnector connector = new ServerConnector(server); ServerConnector connector = new ServerConnector(server);
connector.setPort(port); connector.setPort(port);
connector.setIdleTimeout(0);
server.addConnector(connector); server.addConnector(connector);
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS); ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);