Netflix/dgs-framework

bug: timer threads created in WebsocketGraphQLTransportWSProtocolHandler persist after session closes

mikefischetti opened this issue · 1 comments

Expected behavior

Timer threads cancel after session has been closed and removed from contexts

Actual behavior

Timer threads remain after sessions are closed, increasing the jvm thread count. Timer threads are being created here:

Steps to reproduce

Open a ws connection and send a "connection_init" + "subscribe" message using graphql-transport-ws. A timer thread should have been created. Close the connection and the threads remain.

Screen Shot 2024-02-01 at 5 11 46 PM
Screen Shot 2024-02-01 at 5 14 37 PM