<p></p>
<p><b>@eschmidbauer</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2915#discussion_r748843247">src/modules/nats/nats_mod.c</a>:</p>
<pre style='color:#555'>> @@ -519,6 +614,7 @@ int init_nats_server_url_add(char *url)
                n = n->next;
        }
        n = _init_nats_server_list_new(url);
+       _init_nats_server_conn(n);
</pre>
<p dir="auto">this initiates connections to the servers but each subscriber still maintains a separate connection to each server. i think it would make sense to change all subscriber workers to use the same connections as publishers</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/pull/2915#pullrequestreview-805462498">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPENOEZ6LK5DWKYV2DUL6POBANCNFSM5HI6CVXQ">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/ABO7UZKAUPQ3KWPROPALBHTUL6POBA5CNFSM5HI6CVX2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGABGDYQ.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/pull/2915#pullrequestreview-805462498",
"url": "https://github.com/kamailio/kamailio/pull/2915#pullrequestreview-805462498",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>