Files
nats-server/server
Ivan Kozlovic 2a86112a30 Conditional send of routed subs from a go routine
When a route is established, it is possible that each server sends
its list of subscriptions to each other at the same time. Doing
it in place from the readLoop could then cause problems because
each side could reach a point where the outbound socket buffer
is full and no one is dequeuing data (since readLoop is doing
the send of the subs list).
We changed sending this list from a go routine. However, for small
number of subscriptions, it is not required and was causing some
of the tests to fail because of timing issues.

We will now send in place if the estimated size of all protocols
is below a give threshold (1MB).

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-03-26 17:21:33 -06:00
..
2018-11-28 18:04:26 -07:00
2018-03-29 11:48:09 -04:00
2019-03-25 11:48:22 -07:00
2019-01-09 14:14:47 -07:00
2019-03-26 09:50:53 -07:00
2018-10-12 17:00:41 -07:00
2018-10-31 20:28:44 -07:00
2019-02-05 15:19:59 -08:00
2018-11-29 17:04:58 -08:00
2018-12-06 15:09:14 -08:00
2019-02-04 17:07:49 -08:00
2018-10-06 14:06:14 -07:00
2018-10-06 14:04:14 -07:00
2019-01-14 19:18:00 -07:00
2019-03-25 11:48:22 -07:00
2018-03-15 22:31:07 -07:00
2018-10-22 16:27:30 -06:00
2018-03-15 22:31:07 -07:00
2018-10-22 16:27:30 -06:00
2019-02-04 17:07:49 -08:00
2019-01-18 10:54:04 +08:00
2019-01-09 14:14:47 -07:00