Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Timeout on MacOS after making ~16384 RPC calls #67

@casey

Description

@casey

I originally hit this while using rust-bitcoincore-rpc, but was able to narrow it down to this crate.

The error is:

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

I uploaded a repo containing a self-contained reproduction here: https://github.com/casey/bitcoind-rpc-timeout/blob/master/src/main.rs

The issue was introduced some time between 0.11 and 0.12 and is still present on master. I tried to bisect it down, but there was a lot of flux in the crate, which made it impossible to track down a specific revision.

While debugging, I would sometimes get this error:

Transport(SocketError(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" }))

Which makes me think it's related to this issue: rust-bitcoin/rust-bitcoincore-rpc#211
And this issue: bitcoin/bitcoin#25724 (comment)

Although I wouldn't necessarily bet on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions