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
- 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

Platform (please complete the following information)
- Device: NAS running Ubuntu in a VM
- OS: Ubuntu 22.04
Describe the bug
Any commands that attempt a connection such as
nodes addorvaults clonecould 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 anodesFind. This will cause aRPCtimeout before we can respond with the actual error.To Reproduce
polykey nodes findfor a node you know you can't connect to. This will timeout with aErrorRPCTimedOuterror.Expected behaviour
A command such as
nodes addorvaults cloneor 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
Platform (please complete the following information)