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

Ability to set infinite timeout #846

Open
udf2457 opened this issue Aug 21, 2023 · 1 comment
Open

Ability to set infinite timeout #846

udf2457 opened this issue Aug 21, 2023 · 1 comment

Comments

@udf2457
Copy link

udf2457 commented Aug 21, 2023

Would be nice if there was a way to set infinite timeout, --timeout=0 exits immediately and --timeout=-1 is an invalid option (similar for --count).

This would be useful for a couple of reasons:

  • Allow simulation similar to an infinitewhile() loop
  • Allow better testing of retries, for example one nats instance with --no-ack and then waiting for retry timeout

Yes, arguably you could set a long timeout, but something like -1 = infinite would be "cleaner" and more deterministic (and obvious when writing docs).

@ripienaar
Copy link
Collaborator

Suggest you just set a big one. Infinite timeout is usually a bad idea and will lead to issues.

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

2 participants