Retry loop stopped and connection state is invalid #552
Unanswered
robertmircea
asked this question in
Q&A
Replies: 1 comment 8 replies
-
thanks for reporting this @robertmircea checking now. I don't think we made any changes around connection logic. edit: The only solution to me is to remove the timeout since there is no way to recover from it and timeout should not be necessary since worst case scenario socket exception should end the reader loop: |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a .net core 8 server which runs as a service permanently. I've noticed that starting at some point in time, the following message appeared in the log from NatsConnection and from that moment on, the server could not publish Nats messages anymore and never recovered without restart which is very bad for a server which supposes to run continuously. Even if the nats server was not accessible for a while (which I don't think is the case), wouldn't NatsConnection suppose to restore the connection to Nats servers when appropriate?
Nats nuget versions:
Nats servers are all three running in cluster mode hosted on-prem, version: 2.10.11
Stack trace of first exception observed in the app logs (nothing is missing) and from which issue started to occur:
The next lines of logs when attempting jetstream.PublishAsync were like these:
Unfortunately I don't know how to reproduce this, but I was wondering if any recent nuget library code changes might have triggered this.
Beta Was this translation helpful? Give feedback.
All reactions