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

Error when a client tries to close the connection and the server is already closed #15

Open
redDwarf03 opened this issue Jun 1, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@redDwarf03
Copy link
Member

redDwarf03 commented Jun 1, 2023

Describe the problem you discovered

When a Dapp tries to close a connection to the Wallet and the server is not active (for example because the user close manually the RPC Server), an error occurs in the websocket class

  @override
  Future<void> close() async {
    await _client?.close();
    _client = null;
  }
WebSocketChannelException (WebSocketChannelException: WebSocketChannelException: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = 127.0.0.1, port = 51367)

Describe the solution you'd like

Manage the case where the server's connection is already closed when we try to close client connection

Epic

No response

@redDwarf03 redDwarf03 added the bug Something isn't working label Jun 1, 2023
@redDwarf03 redDwarf03 changed the title Error when we try to close connection Error when a client tries to close the connection and the server is already closed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants