[xwiki/xwiki-commons] 39b42a: XWIKI-24799: Netflux server-side idle timeout is h...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-commons Commit: 39b42a70d8c11a845949293a301d1fe9133a8dce https://github.com/xwiki/xwiki-commons/commit/39b42a70d8c11a845949293a301d1f... Author: Marius Dumitru Florea <[email protected]> Date: 2026-10-09 (Fri, 09 Oct 2026) Changed paths: M xwiki-commons-core/xwiki-commons-netflux/pom.xml A xwiki-commons-core/xwiki-commons-netflux/src/main/java/org/xwiki/netflux/internal/DefaultNetfluxConfiguration.java M xwiki-commons-core/xwiki-commons-netflux/src/main/java/org/xwiki/netflux/internal/Netflux.java A xwiki-commons-core/xwiki-commons-netflux/src/main/java/org/xwiki/netflux/internal/NetfluxConfiguration.java A xwiki-commons-core/xwiki-commons-netflux/src/main/java/org/xwiki/netflux/internal/NetfluxPingPongManager.java M xwiki-commons-core/xwiki-commons-netflux/src/main/resources/META-INF/components.txt A xwiki-commons-core/xwiki-commons-netflux/src/test/java/org/xwiki/netflux/internal/DefaultNetfluxConfigurationTest.java M xwiki-commons-core/xwiki-commons-netflux/src/test/java/org/xwiki/netflux/internal/NetfluxEndpointTest.java A xwiki-commons-core/xwiki-commons-netflux/src/test/java/org/xwiki/netflux/internal/NetfluxPingPongManagerTest.java Log Message: ----------- XWIKI-24799: Netflux server-side idle timeout is hardcoded at 65s and kills healthy realtime sessions in throttled background tabs (server-side counterpart of XWIKI-23928) * Ping the Netflux clients from the server every 25s and close the sessions that miss 3 consecutive pings, because browsers answer WebSocket ping messages even in background tabs where they throttle the JavaScript timers used by the client to send its own PING messages. * Make the session idle timeout, the ping interval and the maximum number of missed pongs configurable through netflux.maxIdleTimeout (default 75000), netflux.pingInterval (default 25000, 0 or less disables the server pings) and netflux.pingMaxMissedPongs (default 3). * Serialize the server pings with the messages sent to the same user since the WebSocket API doesn't allow concurrent writes on a session. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-commons/settings/notifications
participants (1)
-
XWiki Notifications