Skip to content

Commands that fail to connect to peer agents throw ErrorRPCTimedOut #74

@tegefaulkes

Description

@tegefaulkes

Describe the bug

Any commands that attempt a connection such as nodes add or vaults clone could take a long time to complete, especially if we fail to connect. The RPC timeout is 15 seconds with the connection timeout being the same 15 seconds but could take multiple 15 second attempts before giving up. Worst case is about 20/3 attempts to fail a nodesFind. This will cause a RPC timeout before we can respond with the actual error.

To Reproduce

  1. run polykey nodes find for a node you know you can't connect to. This will timeout with a ErrorRPCTimedOut error.

Expected behaviour

A command such as nodes add or vaults clone or any command that relies on a connection to an peer agent needs to take as long as it needs to attempt the connection and then timeout the connection with a descriptive error. The RPC should not timeout during this process.

Screenshots

image

Platform (please complete the following information)

  • Device: NAS running Ubuntu in a VM
  • OS: Ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions