mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
increase connection limit
This commit is contained in:
parent
4f8136ba7c
commit
736aff0fc8
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class Epp::SessionsController < EppController
|
|||
def connection_limit_ok?
|
||||
return true if Rails.env.test? || Rails.env.development?
|
||||
c = EppSession.where(
|
||||
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 5.minutes
|
||||
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 1.second
|
||||
).count
|
||||
|
||||
return false if c >= 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue