]> git.openstreetmap.org Git - rails.git/commitdiff
Apply a timeout to most changeset API calls
authorTom Hughes <tom@compton.nu>
Fri, 14 Aug 2015 18:55:11 +0000 (19:55 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 14 Aug 2015 18:55:11 +0000 (19:55 +0100)
app/controllers/changeset_controller.rb

index 8a72d941d03752f3c826c4abd4f52ba2c233ae90..31004e8ee38659ce67a478b9161c0bacd6ecc770 100644 (file)
@@ -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