-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase default Puma timeout, and make it configurable via YAML.
This allows for configuring if Elasticsearch is slower to respond than 15 seconds, since those API requests can sometimes take longer.
- Loading branch information
Showing
2 changed files
with
2 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
if(Rails.env.development?) | ||
Rack::Timeout.timeout = 60 # seconds | ||
else | ||
Rack::Timeout.timeout = 15 # seconds | ||
end | ||
Rack::Timeout.timeout = ApiUmbrellaConfig[:web][:request_timeout] # seconds | ||
|
||
Rack::Timeout::Logger.device = $stderr | ||
Rack::Timeout::Logger.level = Logger::ERROR |