You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cardano-cli ping takes around 1 minute and 30 seconds (apparently the default TCP timeout) until it exits when specifying a non-existent address, port or offline target.
Steps to Reproduce
Run cardano-cli against a non-existent address, port or offline target:
time cardano-cli ping --host 10.10.10.10 --port 1337 --count 1
Verify the time
real 1m31.542s
user 0m0.003s
sys 0m0.003s
Expected behavior
Ideally, cardano-cli ping would offer an option (--timeout 10) to specify the timeout or exit after a reasonable timeout (maybe 10 seconds).
Actual behavior
cardano-cli ping times out after around 1 minute 30 seconds, which is quite long for working with the tools in scripts.
Workaround
I am currently using the Linux timeout command and can live without this feature being added:
Description
cardano-cli ping
takes around 1 minute and 30 seconds (apparently the default TCP timeout) until it exits when specifying a non-existent address, port or offline target.Steps to Reproduce
cardano-cli
against a non-existent address, port or offline target:Expected behavior
Ideally,
cardano-cli
ping would offer an option (--timeout 10
) to specify the timeout or exit after a reasonable timeout (maybe 10 seconds).Actual behavior
cardano-cli
ping times out after around 1 minute 30 seconds, which is quite long for working with the tools in scripts.Workaround
I am currently using the Linux
timeout
command and can live without this feature being added:Additional Context
I am using the
cardano-cli
version from the compiledcardano-node
tarball 8.9.2:cardano-node:
cardano-cli:
Please let me know if you need additional information or you want me to test with different
cardano-cli
versions. Thanks.The text was updated successfully, but these errors were encountered: