Skip to content

Commit

Permalink
feat: websocket page添加提供扩展 TencentBlueKing#4470 sessionId没有匹配到页面且超时, …
Browse files Browse the repository at this point in the history
…需把session从userId-sessionId内删除
  • Loading branch information
fitzcao committed Jun 25, 2021
1 parent ffb3e2e commit d00ec3d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ class ClearTimeoutCron(
if (sessionPage != null) {
RedisUtlis.cleanPageSessionBySessionId(redisOperation, sessionPage, sessionId)
RedisUtlis.cleanUserSessionBySessionId(redisOperation, userId, sessionId)
} else {
// sessionId没有匹配到页面且超时, 需把session从userId-sessionId内删除
RedisUtlis.cleanUserSessionBySessionId(redisOperation, userId, sessionId)
}
// 如果不在本实例,下发到mq,供其他实例删除对应实例维持的session
if (websocketService.isCacheSession(sessionId)) {
Expand Down

0 comments on commit d00ec3d

Please sign in to comment.