File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 77 response [ 'Server' ] = 'padrino'
88 end
99
10- after do
11- response [ 'Date' ] = Time . now . httpdate
12- end if defined? ( Puma )
13-
1410 get '/json' , :provides => [ :json ] do
1511 { message : "Hello, World!" } . to_json
1612 end
Original file line number Diff line number Diff line change 88}
99
1010# Determine threading/thread pool size and timeout
11- if defined? ( Puma ) && ( threads = Puma . cli_config . options . fetch ( :max_threads ) ) > 1
12- opts [ :pool ] = threads
13- opts [ :checkout_timeout ] = 10
14- else
15- # TODO: ActiveRecord doesn't have a single-threaded mode?
16- opts [ :pool ] = 1
17- opts [ :checkout_timeout ] = 0
18- end
11+ # TODO: ActiveRecord doesn't have a single-threaded mode?
12+ opts [ :pool ] = 512
13+ opts [ :checkout_timeout ] = 5
1914
2015
2116# Setup our logger
You can’t perform that action at this time.
0 commit comments