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

Only stan options in reconnect #142

Open
DeployChef opened this issue Sep 19, 2019 · 1 comment
Open

Only stan options in reconnect #142

DeployChef opened this issue Sep 19, 2019 · 1 comment

Comments

@DeployChef
Copy link

Deadlock now not happen, but producer doesn't reconnecting with stan options. Connection state set on disconnected, and reconnect not happen.

It work if i use nats options

nopts.MaxReconnect = Options.ReconnectForever;
nopts.MaxPingsOut = 2;
nopts.PingInterval = 500;
@ColinSullivan1
Copy link
Member

@DeployChef , thank you for letting us know. You might be timing out on pings. Also, there's a newer feature in the NATS client I need to take advantage of in the STAN client to prevent buffering during reconnect, which requires a new release of the core NATS client and another change here. We'll address this in the next release. In the meantime, using Options.Reconnect forever (or a high value) will fix this.

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