hyperdrive-daemon-client icon indicating copy to clipboard operation
hyperdrive-daemon-client copied to clipboard

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

Open metanomial opened this issue 5 years ago • 0 comments

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

metanomial avatar Jun 14 '20 05:06 metanomial