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

Missing option to control initial connection behavior #663

Open
alexbozhenko opened this issue Feb 14, 2025 · 1 comment
Open

Missing option to control initial connection behavior #663

alexbozhenko opened this issue Feb 14, 2025 · 1 comment
Assignees
Labels
defect Suspected defect such as a bug or regression

Comments

@alexbozhenko
Copy link
Contributor

alexbozhenko commented Feb 14, 2025

Observed behavior

@caspervonb: Hi.
Is there an equivalent of this option in Python client?

https://pkg.go.dev/github.com/nats-io/nats.go#Options.RetryOnFailedConnect
https://javadoc.io/static/io.nats/jnats/2.20.5/io/nats/client/Nats.html#connectReconnectOnConnect-io.nats.client.Options-
https://nats-io.github.io/nats.deno/interfaces/ConnectionOptions.html#waitOnFirstConnect

I do not see an equivalent here: https://nats-io.github.io/nats.py/modules.html#nats.aio.client.Client.connect, but maybe I am looking at the wrong place.

Expected behavior

_

Server and client version

_

Host environment

No response

Steps to reproduce

No response

@alexbozhenko alexbozhenko added the defect Suspected defect such as a bug or regression label Feb 14, 2025
@wallyqs wallyqs changed the title Missing option to control initial conneciton behavior Missing option to control initial connection behavior Feb 14, 2025
@caspervonb caspervonb self-assigned this Feb 14, 2025
@caspervonb
Copy link
Collaborator

The initial connection is currently controlled by allow_reconnect.
But I can raise a pull request with an equivalent of RetryOnFailedConnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

2 participants