skip callerConnectionsLeftCh if max condition is unlimited

pull/4389/head
Elim Tsiagbey 2 years ago
parent 4c9ba980f5
commit 91c86d3dc2

@ -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
}

Loading…
Cancel
Save