From 91c86d3dc27cb16ba570f479f5d3e8e79ca1c29a Mon Sep 17 00:00:00 2001 From: Elim Tsiagbey Date: Fri, 9 Feb 2024 15:38:57 -0500 Subject: [PATCH] skip callerConnectionsLeftCh if max condition is unlimited --- api/proxy/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/proxy/proxy.go b/api/proxy/proxy.go index a499e77639..8a551ae14d 100644 --- a/api/proxy/proxy.go +++ b/api/proxy/proxy.go @@ -288,7 +288,7 @@ func (p *ClientProxy) Start() (retErr error) { return case connsLeft := <-p.connsLeftCh: p.connectionsLeft.Store(connsLeft) - if p.callerConnectionsLeftCh != nil { + if p.callerConnectionsLeftCh != nil && p.sessionAuthzData.ConnectionLimit != -1 { p.callerConnectionsLeftCh <- connsLeft }