We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c7d05 commit d4197faCopy full SHA for d4197fa
2 files changed
frameworks/Ruby/padrino/app/controllers.rb
@@ -7,10 +7,6 @@
7
response['Server'] = 'padrino'
8
end
9
10
- after do
11
- response['Date'] = Time.now.httpdate
12
- end if defined?(Puma)
13
-
14
get '/json', :provides => [:json] do
15
{message: "Hello, World!"}.to_json
16
frameworks/Ruby/padrino/config/database.rb
@@ -8,14 +8,9 @@
}
# Determine threading/thread pool size and timeout
-if defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
- opts[:pool] = threads
- opts[:checkout_timeout] = 10
-else
- # TODO: ActiveRecord doesn't have a single-threaded mode?
- opts[:pool] = 1
17
- opts[:checkout_timeout] = 0
18
-end
+# TODO: ActiveRecord doesn't have a single-threaded mode?
+opts[:pool] = 512
+opts[:checkout_timeout] = 5
19
20
21
# Setup our logger
0 commit comments