From 6910434fe0f3c662c0a6e491613fe9171ec627da Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 14 Aug 2015 19:55:11 +0100 Subject: [PATCH] Apply a timeout to most changeset API calls --- app/controllers/changeset_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/changeset_controller.rb b/app/controllers/changeset_controller.rb index 8a72d941d..31004e8ee 100644 --- a/app/controllers/changeset_controller.rb +++ b/app/controllers/changeset_controller.rb @@ -15,6 +15,7 @@ class ChangesetController < ApplicationController before_action :check_api_readable, :except => [:create, :update, :delete, :upload, :download, :query, :list, :feed, :comment, :subscribe, :unsubscribe, :comments_feed] before_action(:only => [:list, :feed, :comments_feed]) { |c| c.check_database_readable(true) } around_action :api_call_handle_error, :except => [:list, :feed, :comments_feed] + around_action :api_call_timeout, :except => [:list, :feed, :comments_feed, :upload] around_action :web_timeout, :only => [:list, :feed, :comments_feed] # Helper methods for checking consistency -- 2.43.2