Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminating a ws connection takes forever, why? #21

Open
sschiessl-bcp opened this issue Jul 5, 2018 · 3 comments
Open

Terminating a ws connection takes forever, why? #21

sschiessl-bcp opened this issue Jul 5, 2018 · 3 comments

Comments

@sschiessl-bcp
Copy link
Contributor

I am testing new reconnection strategy for UI and I found that it takes forever when ChainWebSocket recognizes that connection is dead until the rpc_connection_status in BlockchainStore is updated.

Why is that @svk31 ? You can test it by simply opening the UI and disabling the internet connection after connection has been established. Are there any timeouts involved that are possibly to high?

image

@grctest
Copy link

grctest commented May 8, 2022

How did you get on with this issue?

@sschiessl-bcp
Copy link
Contributor Author

No fix so far

@grctest
Copy link

grctest commented May 12, 2024

I've been working on improving the TransactionBuilder + Apis code here: https://github.com/BTS-CM/astro-nft-tool/tree/main/src/blockchain/ws

I'm now able to immediately close an WSS connection after querying the server, though I had to remove a lot of functionality surrounding keepalive timers.

Hopefully I'll also have success in migrating it all fully from JS to TS, at the moment only the WS folder is TS.

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

No branches or pull requests

2 participants