<p></p>
<p>Found in nats.h file, from nats.c git repo:</p>
<pre><code> * By default, #natsConnection_Connect() attempts to connect to a server
 * specified in provided list of servers. If it cannot connect and the list has been
 * fully tried, the function returns an error.
</code></pre>
<p>So the lib behavior is to connect to <strong>a single server</strong> from the list, not to all servers in the list.</p>
<p>Closing this, as it is expected lib behavior. Will document this in "nats_url" modparam.</p>
<p>Thanks,<br>
Stefan</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2916#issuecomment-961667799">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK4P2WJPNU4IQUWTGDUKN6MNANCNFSM5HLQGTCQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZMXDJCYQJUG4VXMKETUKN6MNA5CNFSM5HLQGTC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHFI6FVY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2916#issuecomment-961667799",
"url": "https://github.com/kamailio/kamailio/issues/2916#issuecomment-961667799",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>