mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix sysSubscribe races
Made changes to processSub() to accept subscription properties, including the icb callback so that it is set prior to add the subscription to the account's sublist, which prevent races. Fixed some other racy conditions, notably in addServiceImportSub() Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
@@ -3845,7 +3845,7 @@ func TestConfigReloadLeafNodeWithRemotesNoChanges(t *testing.T) {
|
||||
s1, o1 := RunServerWithConfig(conf1)
|
||||
defer s1.Shutdown()
|
||||
|
||||
u, err := url.Parse(fmt.Sprintf("nats://localhost:%d", o1.LeafNode.Port))
|
||||
u, err := url.Parse(fmt.Sprintf("nats://127.0.0.1:%d", o1.LeafNode.Port))
|
||||
if err != nil {
|
||||
t.Fatalf("Error creating url: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user