stan.net
stan.net copied to clipboard
Only stan options in reconnect
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;
@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.