nats.net
nats.net copied to clipboard
processOpError does not propagate its Exception to the DisconnectedEventHandler when reconnecting
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.