Skip to content

Commit

Permalink
rack service_timeout only in production
Browse files Browse the repository at this point in the history
According to the rack timout documentation
https://github.com/zombocom/rack-timeout/blob/main/doc/settings.md#service-timeout

"Service timeout can be disabled entirely by setting the property to 0
or false"

Limiting the service timeout to be active only in production enables debugging in dev and test env
without fearing for the timeout to take oneself out of context.
  • Loading branch information
ulferts committed May 24, 2024
1 parent 5af1496 commit 83e1284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/constants/settings/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ class Definition
description: "Web worker count and threads configuration",
default: {
"workers" => 2,
"timeout" => 120,
"timeout" => Rails.env.production? ? 120 : 0,
"wait_timeout" => 10,
"min_threads" => 4,
"max_threads" => 16
Expand Down

0 comments on commit 83e1284

Please sign in to comment.