Files
nats-server/server
Ivan Kozlovic 42dcdd2eb2 Simplify sendSubsToRoute()
Since we were creating subs on the fly, sub.im would always be nil.
We were passing a client because it was needed in sendRouteSubOrUnSubProtos().

This PR simply fills the buffer with each account's subscriptions.
There is also no need to have subs sent from different go routine
based on some threshold. Routes are no longer subject to max pending.

Some code has been made into a function so that they can be shared
by sendSubsToRoute() and sendRouteSubOrUnSubProtos(). The function
is simply adding to given buffer the RS+/- protocol.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-01-19 14:01:43 -07:00
..
2020-06-12 15:48:38 -07:00
2020-05-19 14:15:11 -07:00
2021-01-19 14:01:43 -07:00
2020-11-30 20:08:44 -07:00
2021-01-17 12:08:35 -08:00
2020-12-14 19:48:54 -05:00
2020-02-25 19:53:09 -05:00
2021-01-14 01:14:52 -08:00
2021-01-17 13:48:40 -08:00
2021-01-14 01:14:52 -08:00
2021-01-14 06:54:08 -08:00
2020-11-17 18:57:45 +00:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2019-05-06 15:41:38 -07:00
2021-01-14 02:52:35 -07:00
2021-01-14 01:14:52 -08:00
2020-12-10 10:55:41 -07:00
2019-12-12 11:58:24 -07:00
2018-12-06 15:09:14 -08:00
2021-01-07 18:19:25 -05:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2020-06-12 10:03:47 -06:00
2021-01-17 13:34:56 -08:00
2018-10-06 14:06:14 -07:00
2021-01-19 14:01:43 -07:00
2021-01-14 01:14:52 -08:00
2020-11-30 20:08:44 -07:00
2021-01-19 14:01:43 -07:00
2018-03-15 22:31:07 -07:00
2019-11-14 20:05:32 -07:00
2018-03-15 22:31:07 -07:00
2019-11-14 20:05:32 -07:00
2019-11-14 20:05:32 -07:00
2019-12-12 11:58:24 -07:00
2021-01-14 01:14:52 -08:00
2021-01-13 20:59:36 -07:00
2021-01-13 20:59:36 -07:00