session: Support SessionReleaseIfPresent to avoid concurrent problem (#5685)

This commit is contained in:
Alan Xu
2024-07-31 21:44:47 +08:00
committed by GitHub
parent bdb7e7a904
commit 06d869664a
23 changed files with 346 additions and 165 deletions

View File

@@ -51,7 +51,7 @@ func TestConn(t *testing.T) {
func TestReconnect(t *testing.T) {
// Setup connection listener
newConns := make(chan net.Conn)
connNum := 2
connNum := 3
ln, err := net.Listen("tcp", ":6002")
if err != nil {
t.Log("Error listening:", err.Error())