423915 - WebSocket / Active connection from IOS that goes into airplane mode not disconnected on server side

+ Working testcase for JSR-356
This commit is contained in:
Joakim Erdfelt 2013-12-12 16:58:42 -07:00
parent 7af074bafb
commit 6d70aab61d
2 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,7 @@ 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);

View File

@ -178,6 +178,7 @@ public abstract class AbstractWebSocketConnection extends AbstractConnection imp
this.ioState.addListener(this);
this.flusher = new Flusher(generator,endp);
this.setInputBufferSize(policy.getInputBufferSize());
this.setMaxIdleTimeout(policy.getIdleTimeout());
}
@Override