mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
tools: disabled idle in Jetty server (#894)
This commit is contained in:
parent
32ae1ab8f0
commit
287333b54e
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user