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
Inside the _processOutboundEvent event Objects are created and a timeout is set. The problem is that a timeout is set for event objects that aren't expecting a response.
This can lead to the timeout to hang even after the client has disconnected.
The text was updated successfully, but these errors were encountered:
gak10100
changed the title
eventObject timeout not cleaned up in _flushOutboundBuffer
eventObject timeout has a timeout set when it's not expecting a response
Oct 23, 2023
Inside the _processOutboundEvent event Objects are created and a timeout is set. The problem is that a timeout is set for event objects that aren't expecting a response.
socketcluster-client/lib/clientsocket.js
Lines 773 to 781 in f551443
Inside the _flushOutboundBuffer function Event Objects are passed off to the transport object
socketcluster-client/lib/clientsocket.js
Lines 709 to 720 in f551443
but because the event object doesn't have a callback it doesn't add it to the callbackMap
https://github.com/SocketCluster/socketcluster-client/blob/f5514434f51369166de9e5dafba2f7da147fb93e/lib/transport.js#L373C10-L387
This can lead to the timeout to hang even after the client has disconnected.
The text was updated successfully, but these errors were encountered: