Add a global timeout that is applied to most API requests.
[rails.git] / app / controllers / node_controller.rb
index 3b288e29bb3026afdbc1f22c87c26317f8927bd0..eeaba6199a9ad346970e0688e7bcd70907534045 100644 (file)
@@ -9,7 +9,7 @@ class NodeController < ApplicationController
   before_filter :check_api_writable, :only => [:create, :update, :delete]
   before_filter :check_api_readable, :except => [:create, :update, :delete]
   after_filter :compress_output
-  around_filter :api_call_handle_error
+  around_filter :api_call_handle_error, :api_call_timeout
 
   # Create a node from XML.
   def create