put this code as timeout.rb in config / initializers folder and put your specific url to array exception
require RUBY_VERSION < '1.9' && RUBY_PLATFORM != "java" ? 'system_timer' : 'timeout' SystemTimer ||= Timeout module Rack class Timeout @timeout = 30 @excludes = ['your url here', 'your url here' ] class << self attr_accessor :timeout, :excludes end def initialize(app) @app = app end def call(env)
source share