-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nats module subscriber issue when connected to more "nats_urls" #2916
Comments
Found in nats.h file, from nats.c git repo:
So the lib behavior is to connect to a single server from the list, not to all servers in the list. Right now, the subscriber part of kamailio nats module creates a single connection with the list of servers from "nats_url" modparams. To be decided later if a single connection per "nats_url" is needed for subscriber part of kamailio nats module. Closing this, as it is expected lib behavior. Will document this in "nats_url" modparam. Thanks, |
Updated doc. Fixes kamailio#2916.
Updated doc. Fixes kamailio#2916.
Description, Troubleshooting, Reproduction
I have 3 go nats servers running and the following kamailio config for nats:
I try to publish using some nats publisher (e.g. nats.c example/libuv-pub.c), and nothing gets printed in event route:
However, if I try to publish on the last server "127.0.0.3", log is printed:
I expected to see 1 log message for each of the above publish(es). Found this while implementing and testing #2915
Thanks,
Stefan
The text was updated successfully, but these errors were encountered: