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

How to handle stale connection errors correctly?

Open LostInDarkMath opened this issue 4 years ago • 1 comments

Hi there!

I registered an error callback for the NATS client and I often receive stale connection errors if the client was long time idle (which is expected). My question is: Should I worry about this? How does this library handles this error? Does it a rreconnect and a retry? Or is my data that I try to publish lost?

I took a look as your documentation and your code but I couldn't find out how you implemention works. So I'm looking forward to hearing from you :)

LostInDarkMath avatar Feb 25 '22 16:02 LostInDarkMath

ping_interval does not take action

xiaofxf avatar Mar 17 '22 00:03 xiaofxf