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

processOpError does not propagate its Exception to the DisconnectedEventHandler when reconnecting

Open esadaoui opened this issue 3 years ago • 0 comments

Hello, I am using NATS.Client 0.11.0.

When processOpError(Exception e) is called, the Exception e is not propagated in lastEx. Thus, the method doReconnect() find nothing here and trigger the event Opts.DisconnectedEventHandler with the property Error set to null.

It can be easily reproduced by creating "Connection is stale" error. Run any of your process connected to NATS with a MaxPingsOut set to 1 and PingInterval set to a very little value.

esadaoui avatar Mar 08 '21 17:03 esadaoui