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

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

Open
metanomial opened this issue Jun 14, 2020 · 0 comments

Comments

@metanomial
Copy link

metanomial commented Jun 14, 2020

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

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