Skip to content

Commit

Permalink
tools: disabled idle in Jetty server (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihromant authored Mar 14, 2024
1 parent 32ae1ab commit 287333b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void stop() {
private void runServer() {
server = new Server();
var connector = new ServerConnector(server);
connector.setIdleTimeout(0);
server.addConnector(connector);

var context = new ServletContextHandler(ServletContextHandler.SESSIONS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public void start() {
server = new Server();
ServerConnector connector = new ServerConnector(server);
connector.setPort(port);
connector.setIdleTimeout(0);
server.addConnector(connector);

ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public void start() {
server = new Server();
ServerConnector connector = new ServerConnector(server);
connector.setPort(port);
connector.setIdleTimeout(0);
server.addConnector(connector);

ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
Expand Down

0 comments on commit 287333b

Please sign in to comment.