Files
nats-server/server
Ivan Kozlovic f155c75da7 [FIXED] LeafNode reject duplicate remote
There was a test to prevent an errorneous loop detection when a
remote would reconnect (due to a stale connection) while the accepting
side did not detect the bad connection yet.

However, this test was racy because the test was done prior to add
the connections to the map.

In the case of a misconfiguration where the remote creates 2 different
remote connections that end-up binding to the same account in the
accepting side, then it was possible that this would not be detected.
And when it was, the remote side would be unaware since the disconnect/
reconnect attempts would not show up if not running in debug mode.

This change makes sure that the detection is no longer racy and returns
an error to the remote so at least the log/console of the remote will
show the "duplicate connection" error messages.

Resolves #1730

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-11-23 13:28:18 -07:00
..
2020-06-12 15:48:38 -07:00
2019-10-15 23:55:13 +08:00
2020-05-19 14:15:11 -07:00
2020-11-18 10:49:42 -05:00
2020-11-22 10:24:32 -08:00
2020-10-22 02:23:15 -04:00
2020-02-25 19:53:09 -05:00
2020-11-14 13:35:05 -08:00
2020-11-17 18:57:45 +00:00
2020-11-14 13:35:05 -08:00
2019-05-06 15:41:38 -07:00
2019-12-12 11:58:24 -07:00
2018-12-06 15:09:14 -08:00
2020-06-12 10:03:47 -06:00
2018-10-06 14:06:14 -07:00
2020-10-09 09:36:30 -06:00
2020-10-09 09:36:30 -06: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
2020-10-15 13:42:22 -07:00