Tweaking idle timeout
This commit is contained in:
parent
5cf9640cfa
commit
5380430b75
|
@ -90,7 +90,6 @@ public class JsrBrowserDebugTool
|
|||
server.setHandler(context);
|
||||
|
||||
ServerContainer container = WebSocketServerContainerInitializer.configureContext(context);
|
||||
container.setDefaultMaxSessionIdleTimeout(5000);
|
||||
container.addEndpoint(JsrBrowserSocket.class);
|
||||
|
||||
LOG.info("{} setup on port {}",this.getClass().getName(),port);
|
||||
|
|
|
@ -113,7 +113,7 @@ public class BrowserDebugTool implements WebSocketCreator
|
|||
factory.setCreator(BrowserDebugTool.this);
|
||||
|
||||
// Set the timeout
|
||||
factory.getPolicy().setIdleTimeout(5000);
|
||||
factory.getPolicy().setIdleTimeout(30000);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue