From 30a8a4c8aa8e15f5c9d620c1317b9d6a7f8713ca Mon Sep 17 00:00:00 2001 From: Priit Tark Date: Tue, 9 Jun 2015 18:44:39 +0300 Subject: [PATCH] One second sleep for epp error #2688 --- app/controllers/epp_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/epp_controller.rb b/app/controllers/epp_controller.rb index 1c8f25323..d5f88b8d0 100644 --- a/app/controllers/epp_controller.rb +++ b/app/controllers/epp_controller.rb @@ -93,6 +93,10 @@ class EppController < ApplicationController @errors.uniq! + # Requested by client, ticket #2688 + # Known issues: error request is exactly 1 second slower and server can handle less load + sleep 1 if !Rails.env.test? || !Rails.env.development? + render_epp_response '/epp/error' end