-
Notifications
You must be signed in to change notification settings - Fork 38.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cancellation of read/write inactivity
The cancellation of read and write inactivity tasks was done via WebSocketHandler#afterConnectionClosed, relying on the WebSocket library to always invoke the callback. This change moves the cancellation to the `close` method instead that in turn is called from DefaultStompSession#resetConnection, in effect making the cancellation more proactive and aligned with connection cleanup in DefaultStompSession vs relying on a subsequent call from the WebSocket library after the connection is closed. Closes gh-32195
- Loading branch information
1 parent
6be0432
commit 2dd22f6
Showing
2 changed files
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters