Skip to content

Commit

Permalink
Merge pull request #45 from airbnb/rack-key-space-limit
Browse files Browse the repository at this point in the history
Allow configuration of Rack's key_space_limit
  • Loading branch information
darnaut authored Apr 28, 2021
2 parents b216a69 + 46a6f28 commit 253ad79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ if opts['gc_stats']
end
end

# Rack options
if opts['rack']
key_space_limit = opts['rack']['key_space_limit']
Rack::Utils.key_space_limit = key_space_limit if key_space_limit
end

# prepare statsd
require 'datadog/statsd'
STATSD = Datadog::Statsd.new(opts['statsd_host'], opts['statsd_port'])
Expand Down

0 comments on commit 253ad79

Please sign in to comment.