martin-g commented on a change in pull request #496:
URL: https://github.com/apache/wicket/pull/496#discussion_r795992677



##########
File path: 
wicket-examples/src/main/java/org/apache/wicket/examples/websocket/JSR356Application.java
##########
@@ -59,11 +65,22 @@ public void init()
 
                getSharedResources().add(ChartWebSocketResource.NAME, new 
ChartWebSocketResource());
 
+               final WebSocketSettings webSocketSettings = new 
WebSocketSettings() {
+                       @Override
+                       public void configureSession(IWebSocketSession 
webSocketSession) {
+                               LOGGER.info("getMaxIdleTimeout = " + 
webSocketSession.getMaxIdleTimeout());
+                               // make sessions almost "immortal"
+                               
webSocketSession.setMaxIdleTimeout(Duration.ofHours(10).toMillis());

Review comment:
       5 mins at most. This is just a demo, we don't guarantee 99.999% SLA :-)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to