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

[jsonrpsee ws]: handle connection reset #249

Closed
niklasad1 opened this issue Mar 15, 2021 · 0 comments · Fixed by #1396
Closed

[jsonrpsee ws]: handle connection reset #249

niklasad1 opened this issue Mar 15, 2021 · 0 comments · Fixed by #1396

Comments

@niklasad1
Copy link
Member

niklasad1 commented Mar 15, 2021

In some scenarios it's possible that the jsonrpsee WebSocket client terminates the connection and it can't be recovered.

The error message is bad it will be Error::Internal (will improve in the next release), if such occurs subxt should restart it, drop the client and create a new one.

In practice it looks quite difficult because that the RPC client can be configured by the user however at least subxt could pass the error along the user.

@niklasad1 niklasad1 reopened this Mar 15, 2021
@niklasad1 niklasad1 changed the title [jsonrpsee websocket]: handle connection reset [jsonrpsee ws]: handle connection reset Mar 15, 2021
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

Successfully merging a pull request may close this issue.

1 participant