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

Socket or port exhaustion when making fast RPC calls to bitcoin core #309

Closed
Tracked by #713
casey opened this issue Aug 12, 2022 · 2 comments
Closed
Tracked by #713

Socket or port exhaustion when making fast RPC calls to bitcoin core #309

casey opened this issue Aug 12, 2022 · 2 comments
Assignees

Comments

@casey
Copy link
Collaborator

casey commented Aug 12, 2022

JsonRpc(Transport(SocketError(Error { kind: TimedOut, message: "connection timed out" })))

This is due to using too many sockets or ports. Probably ports, specifically local ephemeral ports.

This is the rust-jsonrpc issue: apoelstra/rust-jsonrpc#67

Need to reuse the socket, or add hyper transport to rust-jsonrpc.

Update: I'm not actually sure what's going on here. We tried the socket-reusing version and it didn't help.

We should:

  • Test again with the latest PR version
  • Do a comparison with bitcoin-cli. If bitcoin-cli doesn't have this problem, then it's a good indication that the issue is in jsonrpc.
@casey casey changed the title Socket or port exhaustion Socket or port exhaustion when making fast RPC calls to bitcoin core Sep 8, 2022
@veryordinally
Copy link
Collaborator

Potentially explore moving to https://github.com/paritytech/jsonrpsee

@raphjaph
Copy link
Collaborator

maybe try again with this fix: apoelstra/rust-jsonrpc#72

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

3 participants