Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

If WebSocket from server side is disconnected abruptly then Disconnect from client is not working #4

Open
vagesh-mathapati opened this issue Feb 17, 2023 · 2 comments

Comments

@vagesh-mathapati
Copy link

Hi,

I have WebSocket STOMP server written in SpringBoot. If WebSocket from server side is disconnected abruptly then then I am observing that subscription channels are still in stuck state and websocket are still running at client side. To stop/terminate we invoked Disconnect() of "github.com\drawdy\[email protected]\disconnect.go" which is internally invoking shutdown() of "github.com\drawdy\[email protected]\connection.go" but in this method it is getting stuck at "c.subsLock.Lock()" .

Can you please let me know what are the ways to close the Stomp and Websocket connection from client side in this situation?

Thanks
Vagesh

@vagesh-mathapati
Copy link
Author

@drawdy can you please help...

@drawdy
Copy link
Owner

drawdy commented Feb 23, 2023

@vagesh-mathapati Sorry, I haven't done anything related for a long time. I can't help much. Wait for enough time to process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants