Skip to content

Commit 71852a9

Browse files
committed
Trap exception from SockJS HeartbeatTask
Issue: SPR-15307
1 parent 9228863 commit 71852a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/transport/session/AbstractSockJsSession.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ public void run() {
455455
try {
456456
sendHeartbeat();
457457
}
458+
catch (Throwable ex) {
459+
// Ignore: already handled in writeFrame...
460+
}
458461
finally {
459462
this.expired = true;
460463
}

0 commit comments

Comments
 (0)