Skip to content

Hyperdrive method calls hang indefinitely if the Hyperdrive Daemon crashed or was stopped #15

@metanomial

Description

@metanomial

Describe the bug
Method calls from a Hyperdrive instance hang indefinitely if the Hyperdrive Daemon was stopped or crashed. Because the HyperdriveClient is

To Reproduce
Node REPL with --experimental-repl-await flag enabled, if necessary:

> const { HyperdriveClient } = require("hyperdrive-daemon-client");
> const client = new HyperdriveClient;
> await client.ready();
> const drive = await client.drive.get();
> await drive.readdir();
[]
>

// In another terminal, stop the Hyperdrive Daemon
// Back in the first terminal, repeat:

> await client.readdir();

Expected Behavior
Eventual timeout and error, similar to HyperdriveClient.ready when the Hyperdrive Daemon is stopped or crashed.

OS
Windows 10

Node version
14.3.0

Was the daemon installed from NPM or bundled with Beaker?
NPM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions