stan.net icon indicating copy to clipboard operation
stan.net copied to clipboard

Only stan options in reconnect

Open DeployChef opened this issue 4 years ago • 1 comments

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 avatar Sep 19 '19 07:09 DeployChef

@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.

ColinSullivan1 avatar Sep 19 '19 15:09 ColinSullivan1