Skip to content

Commit

Permalink
config: adjust rack timeout setup
Browse files Browse the repository at this point in the history
In newer versions of Rack, this method of setting the timeout is
obsolete. I stole the fix here from:

  zombocom/rack-timeout#130 (comment)
  • Loading branch information
peff committed Dec 13, 2020
1 parent 2f61af7 commit 6a960ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/timeout.rb
@@ -1,3 +1,3 @@
# frozen_string_literal: true

Rack::Timeout.timeout = 20 if Rails.env.production?
Rails.application.config.middleware.insert_before Rack::Runtime, Rack::Timeout, service_timeout: 20 if Rails.env.production?

0 comments on commit 6a960ca

Please sign in to comment.