From 74a635fce281bd7301b7dc942291d2aa1685176b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 2 Apr 2014 20:53:58 +0300 Subject: [PATCH] Do not allow Atmosphere to make session infinitely long (#12139) Change-Id: I09d39ff40f9adda20eb38056ab94ddfa0b07fb64 --- .../com/vaadin/server/communication/PushRequestHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/com/vaadin/server/communication/PushRequestHandler.java b/server/src/com/vaadin/server/communication/PushRequestHandler.java index 82e3961049..883a873ef6 100644 --- a/server/src/com/vaadin/server/communication/PushRequestHandler.java +++ b/server/src/com/vaadin/server/communication/PushRequestHandler.java @@ -109,7 +109,9 @@ public class PushRequestHandler implements RequestHandler, ApplicationConfig.WEBSOCKET_MAXTEXTSIZE, bufferSize); atmosphere.addInitParameter( ApplicationConfig.WEBSOCKET_MAXBINARYSIZE, bufferSize); - + atmosphere.addInitParameter( + ApplicationConfig.PROPERTY_ALLOW_SESSION_TIMEOUT_REMOVAL, + "false"); // Disable Atmosphere's message about commercial support atmosphere.addInitParameter( "org.atmosphere.cpr.showSupportMessage", "false"); -- 2.39.5