Add separate grid reconnection mutex (#18862)

Add separate reconnection mutex

Give more safety around reconnects and make sure a state change isn't missed.

Tested with several runs of `λ go test -race -v -count=500`

Adds separate mutex and doesn't mix in the testing mutex.
This commit is contained in:
Klaus Post
2024-01-24 11:49:39 -08:00
committed by GitHub
parent 4a6c97463f
commit 6968f7237a
2 changed files with 26 additions and 18 deletions
-1
View File
@@ -535,7 +535,6 @@ func testStreamDeadline(t *testing.T, local, remote *Manager) {
err = resp.Err
}
clientCanceled <- time.Since(started)
t.Log("Client Context canceled")
}()
serverEnd := <-serverCanceled
clientEnd := <-clientCanceled