PullSubscribe Fetch stops working after losing connection to server #837
Unanswered
bhosale-ajay
asked this question in
Q&A
Replies: 1 comment
-
Can you upgrade to a more recent version and try again? There have been improvements for this specific issue. Consumer must be durable or at least have an inactive threshold long enough to survive the outage. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Following code uses PullSubscribe and read 1 message at a time. It works well, as long as connection is maintained. If connection to server is lost then even after reestablishing the subscription is unable to fetch any messages.
The only option worked for me is using the
DisconnectedEventHandler
and reset the connection and subscription. Documentation mentions that client library will automatically re-establish all the subscriptions, there is nothing for the application programmer to do.Any pointers will be helpful.
NATS Library Version : 1.1.0
Beta Was this translation helpful? Give feedback.
All reactions