mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +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?
|
def connection_limit_ok?
|
||||||
return true if Rails.env.test? || Rails.env.development?
|
return true if Rails.env.test? || Rails.env.development?
|
||||||
c = EppSession.where(
|
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
|
).count
|
||||||
|
|
||||||
return false if c >= 4
|
return false if c >= 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue