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

bitcoind RPC Errors #273

Closed
casey opened this issue Aug 4, 2022 · 1 comment
Closed

bitcoind RPC Errors #273

casey opened this issue Aug 4, 2022 · 1 comment

Comments

@casey
Copy link
Collaborator

casey commented Aug 4, 2022

We're running into two distinct bitcoind RPC errors:

  1. JsonRpc(Transport(SocketError(Error { kind: TimedOut, message: "connection timed out" }))) hereafter "timeout"
  2. JsonRpc(Transport(SocketError(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }))) hereafter "resource unavailable"

timeout

I took this as far as I could, came up with a self-contained repro, and opened this issue: apoelstra/rust-jsonrpc#67

resource unavailable


This might be a bug in rust-jsonrpc, or rust-bitcoincorerpc. Some things to try:

  • try +SO_REUSEADDR, +SO_REUSEPORT, and -SO_LINGER
  • try changing 15s default timeout to see if I can get a different timeout
  • try figuring out why the timeout is always 15s
  • try implementing hyper transport (can upstream behind a feature flag)
  • remove com.apple.quarantine from bitcoind (or add to homebrew)
  • try eliminating Rust RPC from repro
@casey casey changed the title Debug Bitcoind bitcoind RPC Errors Aug 4, 2022
@casey
Copy link
Collaborator Author

casey commented Aug 12, 2022

Closing in favor of more specific issues.

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

1 participant