You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because Lost Connection Detection uses the java.util.Timer API instead of the ScheduledThreadPoolExecutor API, it is sensitive to changes in the system time. For example, if you set the system time to a point years in the future, the connectionLostTimerTask will be called constantly, frequently causing disconnects as the clients cannot respond before the task is called again. This is particularly an issue for embedded devices that must have their clock set at runtime.
The best solution would seem to be to use the ScheduledThreadPoolExecutor API. I plan to submit a PR.
To Reproduce
Start a WebSocket server using this library
Set the system time to a few years in the future
The text was updated successfully, but these errors were encountered:
Because Lost Connection Detection uses the
java.util.Timer
API instead of theScheduledThreadPoolExecutor
API, it is sensitive to changes in the system time. For example, if you set the system time to a point years in the future, theconnectionLostTimerTask
will be called constantly, frequently causing disconnects as the clients cannot respond before the task is called again. This is particularly an issue for embedded devices that must have their clock set at runtime.The best solution would seem to be to use the
ScheduledThreadPoolExecutor
API. I plan to submit a PR.To Reproduce
The text was updated successfully, but these errors were encountered: