forked from External/ergo
refactor limits and throttling
This commit is contained in:
parent
6b20d60c06
commit
a2ac4eeef9
4 changed files with 100 additions and 69 deletions
|
|
@ -542,9 +542,7 @@ func (client *Client) destroy() {
|
|||
ipaddr := client.IP()
|
||||
// this check shouldn't be required but eh
|
||||
if ipaddr != nil {
|
||||
client.server.connectionLimitsMutex.Lock()
|
||||
client.server.connectionLimits.RemoveClient(ipaddr)
|
||||
client.server.connectionLimitsMutex.Unlock()
|
||||
}
|
||||
|
||||
// alert monitors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue