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
Create an explicit heartbeat task with an experiration flag so that
it can be cancelled reliably vs relying on the ScheduledFutureTask
cancel method which may return true even if the task is already
running.
Issue: SPR-14356
Copy file name to clipboardExpand all lines: spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java
+52-60Lines changed: 52 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,6 @@
27
27
importjava.util.Set;
28
28
importjava.util.concurrent.ConcurrentHashMap;
29
29
importjava.util.concurrent.ScheduledFuture;
30
-
importjava.util.concurrent.locks.Lock;
31
-
importjava.util.concurrent.locks.ReentrantLock;
32
30
33
31
importorg.apache.commons.logging.Log;
34
32
importorg.apache.commons.logging.LogFactory;
@@ -106,9 +104,11 @@ private enum State {NEW, OPEN, CLOSED}
Copy file name to clipboardExpand all lines: spring-websocket/src/test/java/org/springframework/web/socket/sockjs/transport/session/SockJsSessionTests.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,7 @@ public void scheduleHeartbeatNotActive() throws Exception {
0 commit comments