SetMaxConnections sets the maximum connections for this SessionManager.
(n int)
| 145 | } |
| 146 | |
| 147 | // SetConnectionLimiter replaces the local process limiter with a cluster-wide |
| 148 | // admission limiter. Local session maps still track only this control-plane's |
| 149 | // live sessions. |
| 150 | func (sm *SessionManager) SetConnectionLimiter(limiter connectionLimiter) { |
| 151 | sm.mu.Lock() |
| 152 | defer sm.mu.Unlock() |
| 153 | sm.limiter = limiter |
| 154 | } |
| 155 |