X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/841ebe80d7e62068e8c2813bbeb82ecfbfeb0607..eefb42334f6d928081d5d5edbb92e75813666dbb:/app/controllers/browse_controller.rb diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 5c7912d15..9aec1060a 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -4,7 +4,7 @@ class BrowseController < ApplicationController before_filter :authorize_web before_filter :set_locale before_filter { |c| c.check_database_readable(true) } - around_filter :timeout, :except => [:start] + around_filter :web_timeout, :except => [:start] def start end @@ -77,14 +77,4 @@ class BrowseController < ApplicationController rescue ActiveRecord::RecordNotFound render :action => "not_found", :status => :not_found end - -private - - def timeout - SystemTimer.timeout_after(30) do - yield - end - rescue Timeout::Error - render :action => "timeout", :status => :request_timeout - end end