Add WebSocket chapter to WebFlux section

Issue: SPR-15700
This commit is contained in:
Rossen Stoyanchev
2017-11-13 18:06:10 -05:00
parent 0dd31b834e
commit 536e72c8df
4 changed files with 187 additions and 23 deletions

View File

@@ -171,7 +171,9 @@ public abstract class AbstractWebSocketIntegrationTests {
@Bean
public WebSocketService webSocketService() {
return new HandshakeWebSocketService(getUpgradeStrategy());
TomcatRequestUpgradeStrategy strategy = new TomcatRequestUpgradeStrategy();
strategy.setMaxSessionIdleTimeout(0L);
return new HandshakeWebSocketService(strategy);
}
protected abstract RequestUpgradeStrategy getUpgradeStrategy();