puma 3.9.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puma might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/History.md +98 -0
- data/README.md +140 -230
- data/docs/architecture.md +36 -0
- data/{DEPLOYMENT.md → docs/deployment.md} +0 -0
- data/docs/images/puma-connection-flow-no-reactor.png +0 -0
- data/docs/images/puma-connection-flow.png +0 -0
- data/docs/images/puma-general-arch.png +0 -0
- data/docs/plugins.md +28 -0
- data/docs/restart.md +39 -0
- data/docs/signals.md +56 -3
- data/docs/systemd.md +112 -37
- data/ext/puma_http11/http11_parser.c +84 -84
- data/ext/puma_http11/http11_parser.rl +9 -9
- data/ext/puma_http11/mini_ssl.c +18 -4
- data/ext/puma_http11/org/jruby/puma/Http11Parser.java +13 -16
- data/ext/puma_http11/org/jruby/puma/MiniSSL.java +6 -0
- data/lib/puma.rb +8 -0
- data/lib/puma/app/status.rb +8 -0
- data/lib/puma/binder.rb +12 -8
- data/lib/puma/cli.rb +20 -7
- data/lib/puma/client.rb +28 -0
- data/lib/puma/cluster.rb +26 -7
- data/lib/puma/configuration.rb +19 -14
- data/lib/puma/const.rb +7 -2
- data/lib/puma/control_cli.rb +5 -5
- data/lib/puma/dsl.rb +34 -7
- data/lib/puma/jruby_restart.rb +0 -1
- data/lib/puma/launcher.rb +36 -19
- data/lib/puma/minissl.rb +49 -27
- data/lib/puma/plugin/tmp_restart.rb +0 -1
- data/lib/puma/reactor.rb +135 -0
- data/lib/puma/runner.rb +12 -1
- data/lib/puma/server.rb +84 -25
- data/lib/puma/single.rb +12 -3
- data/lib/puma/thread_pool.rb +47 -8
- data/lib/rack/handler/puma.rb +4 -1
- data/tools/jungle/README.md +12 -2
- data/tools/jungle/init.d/README.md +2 -0
- data/tools/jungle/init.d/puma +2 -2
- data/tools/jungle/init.d/run-puma +1 -1
- data/tools/jungle/rc.d/README.md +74 -0
- data/tools/jungle/rc.d/puma +61 -0
- data/tools/jungle/rc.d/puma.conf +10 -0
- data/tools/trickletest.rb +1 -1
- metadata +21 -94
- data/.github/issue_template.md +0 -20
- data/Gemfile +0 -12
- data/Manifest.txt +0 -78
- data/Rakefile +0 -158
- data/Release.md +0 -9
- data/gemfiles/2.1-Gemfile +0 -12
- data/puma.gemspec +0 -52
data/lib/puma/single.rb
CHANGED
@@ -3,11 +3,20 @@ require 'puma/detect'
|
|
3
3
|
require 'puma/plugin'
|
4
4
|
|
5
5
|
module Puma
|
6
|
+
# This class is instantiated by the `Puma::Launcher` and used
|
7
|
+
# to boot and serve a Ruby application when no puma "workers" are needed
|
8
|
+
# i.e. only using "threaded" mode. For example `$ puma -t 1:5`
|
9
|
+
#
|
10
|
+
# At the core of this class is running an instance of `Puma::Server` which
|
11
|
+
# gets created via the `start_server` method from the `Puma::Runner` class
|
12
|
+
# that this inherits from.
|
6
13
|
class Single < Runner
|
7
14
|
def stats
|
8
|
-
b = @server.backlog
|
9
|
-
r = @server.running
|
10
|
-
|
15
|
+
b = @server.backlog || 0
|
16
|
+
r = @server.running || 0
|
17
|
+
t = @server.pool_capacity || 0
|
18
|
+
m = @server.max_threads || 0
|
19
|
+
%Q!{ "backlog": #{b}, "running": #{r}, "pool_capacity": #{t}, "max_threads": #{m} }!
|
11
20
|
end
|
12
21
|
|
13
22
|
def restart
|
data/lib/puma/thread_pool.rb
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
require 'thread'
|
2
2
|
|
3
3
|
module Puma
|
4
|
-
# A simple thread pool management object.
|
4
|
+
# Internal Docs for A simple thread pool management object.
|
5
5
|
#
|
6
|
+
# Each Puma "worker" has a thread pool to process requests.
|
7
|
+
#
|
8
|
+
# First a connection to a client is made in `Puma::Server`. It is wrapped in a
|
9
|
+
# `Puma::Client` instance and then passed to the `Puma::Reactor` to ensure
|
10
|
+
# the whole request is buffered into memory. Once the request is ready, it is passed into
|
11
|
+
# a thread pool via the `Puma::ThreadPool#<<` operator where it is stored in a `@todo` array.
|
12
|
+
#
|
13
|
+
# Each thread in the pool has an internal loop where it pulls a request from the `@todo` array
|
14
|
+
# and proceses it.
|
6
15
|
class ThreadPool
|
7
16
|
class ForceShutdown < RuntimeError
|
8
17
|
end
|
@@ -49,11 +58,11 @@ module Puma
|
|
49
58
|
@clean_thread_locals = false
|
50
59
|
end
|
51
60
|
|
52
|
-
attr_reader :spawned, :trim_requested
|
61
|
+
attr_reader :spawned, :trim_requested, :waiting
|
53
62
|
attr_accessor :clean_thread_locals
|
54
63
|
|
55
64
|
def self.clean_thread_locals
|
56
|
-
Thread.current.keys.each do |key|
|
65
|
+
Thread.current.keys.each do |key| # rubocop: disable Performance/HashEachMethods
|
57
66
|
Thread.current[key] = nil unless key == :__recursive_key__
|
58
67
|
end
|
59
68
|
end
|
@@ -64,6 +73,10 @@ module Puma
|
|
64
73
|
@mutex.synchronize { @todo.size }
|
65
74
|
end
|
66
75
|
|
76
|
+
def pool_capacity
|
77
|
+
waiting + (@max - spawned)
|
78
|
+
end
|
79
|
+
|
67
80
|
# :nodoc:
|
68
81
|
#
|
69
82
|
# Must be called with @mutex held!
|
@@ -71,9 +84,9 @@ module Puma
|
|
71
84
|
def spawn_thread
|
72
85
|
@spawned += 1
|
73
86
|
|
74
|
-
th = Thread.new do
|
87
|
+
th = Thread.new(@spawned) do |spawned|
|
75
88
|
# Thread name is new in Ruby 2.3
|
76
|
-
Thread.current.name = 'puma %03i' %
|
89
|
+
Thread.current.name = 'puma %03i' % spawned if Thread.current.respond_to?(:name=)
|
77
90
|
todo = @todo
|
78
91
|
block = @block
|
79
92
|
mutex = @mutex
|
@@ -153,16 +166,42 @@ module Puma
|
|
153
166
|
end
|
154
167
|
end
|
155
168
|
|
169
|
+
# This method is used by `Puma::Server` to let the server know when
|
170
|
+
# the thread pool can pull more requests from the socket and
|
171
|
+
# pass to the reactor.
|
172
|
+
#
|
173
|
+
# The general idea is that the thread pool can only work on a fixed
|
174
|
+
# number of requests at the same time. If it is already processing that
|
175
|
+
# number of requests then it is at capacity. If another Puma process has
|
176
|
+
# spare capacity, then the request can be left on the socket so the other
|
177
|
+
# worker can pick it up and process it.
|
178
|
+
#
|
179
|
+
# For example: if there are 5 threads, but only 4 working on
|
180
|
+
# requests, this method will not wait and the `Puma::Server`
|
181
|
+
# can pull a request right away.
|
182
|
+
#
|
183
|
+
# If there are 5 threads and all 5 of them are busy, then it will
|
184
|
+
# pause here, and wait until the `not_full` condition variable is
|
185
|
+
# signaled, usually this indicates that a request has been processed.
|
186
|
+
#
|
187
|
+
# It's important to note that even though the server might accept another
|
188
|
+
# request, it might not be added to the `@todo` array right away.
|
189
|
+
# For example if a slow client has only sent a header, but not a body
|
190
|
+
# then the `@todo` array would stay the same size as the reactor works
|
191
|
+
# to try to buffer the request. In tha scenario the next call to this
|
192
|
+
# method would not block and another request would be added into the reactor
|
193
|
+
# by the server. This would continue until a fully bufferend request
|
194
|
+
# makes it through the reactor and can then be processed by the thread pool.
|
156
195
|
def wait_until_not_full
|
157
196
|
@mutex.synchronize do
|
158
197
|
while true
|
159
198
|
return if @shutdown
|
160
|
-
return if @waiting > 0
|
161
199
|
|
162
200
|
# If we can still spin up new threads and there
|
163
|
-
# is work queued
|
201
|
+
# is work queued that cannot be handled by waiting
|
202
|
+
# threads, then accept more work until we would
|
164
203
|
# spin up the max number of threads.
|
165
|
-
return if @todo.size < @max - @spawned
|
204
|
+
return if @todo.size - @waiting < @max - @spawned
|
166
205
|
|
167
206
|
@not_full.wait @mutex
|
168
207
|
end
|
data/lib/rack/handler/puma.rb
CHANGED
@@ -9,6 +9,7 @@ module Rack
|
|
9
9
|
}
|
10
10
|
|
11
11
|
def self.config(app, options = {})
|
12
|
+
require 'puma'
|
12
13
|
require 'puma/configuration'
|
13
14
|
require 'puma/events'
|
14
15
|
require 'puma/launcher'
|
@@ -21,7 +22,7 @@ module Rack
|
|
21
22
|
# contains an array of all explicitly defined user options. We then
|
22
23
|
# know that all other values are defaults
|
23
24
|
if user_supplied_options = options.delete(:user_supplied_options)
|
24
|
-
(options.keys - user_supplied_options).each do |k
|
25
|
+
(options.keys - user_supplied_options).each do |k|
|
25
26
|
default_options[k] = options.delete(k)
|
26
27
|
end
|
27
28
|
end
|
@@ -84,6 +85,8 @@ module Rack
|
|
84
85
|
end
|
85
86
|
private
|
86
87
|
def self.set_host_port_to_config(host, port, config)
|
88
|
+
config.clear_binds! if host || port
|
89
|
+
|
87
90
|
if host && (host[0,1] == '.' || host[0,1] == '/')
|
88
91
|
config.bind "unix://#{host}"
|
89
92
|
elsif host && host =~ /^ssl:\/\//
|
data/tools/jungle/README.md
CHANGED
@@ -1,9 +1,19 @@
|
|
1
1
|
# Puma as a service
|
2
2
|
|
3
|
+
## Upstart
|
4
|
+
|
5
|
+
See `/tools/jungle/upstart` for Ubuntu's upstart scripts.
|
6
|
+
|
7
|
+
## Systemd
|
8
|
+
|
9
|
+
See [/docs/systemd](https://github.com/puma/puma/blob/master/docs/systemd.md).
|
10
|
+
|
3
11
|
## Init.d
|
4
12
|
|
13
|
+
Deprecatation Warning : `init.d` was replaced by `systemd` since Debian 8 and Ubuntu 16.04, you should look into [/docs/systemd](https://github.com/puma/puma/blob/master/docs/systemd.md) unless you are on an older OS.
|
14
|
+
|
5
15
|
See `/tools/jungle/init.d` for tools to use with init.d and start-stop-daemon.
|
6
16
|
|
7
|
-
##
|
17
|
+
## rc.d
|
8
18
|
|
9
|
-
See `/tools/jungle/
|
19
|
+
See `/tools/jungle/rc.d` for FreeBSD's rc.d scripts
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# Puma daemon service
|
2
2
|
|
3
|
+
Deprecatation Warning : `init.d` was replaced by `systemd` since Debian 8 and Ubuntu 16.04, you should look into [/docs/systemd](https://github.com/puma/puma/blob/master/docs/systemd.md) unless you are on an older OS.
|
4
|
+
|
3
5
|
Init script to manage multiple Puma servers on the same box using start-stop-daemon.
|
4
6
|
|
5
7
|
## Installation
|
data/tools/jungle/init.d/puma
CHANGED
@@ -48,7 +48,7 @@ do_start_one() {
|
|
48
48
|
if [ -e $PIDFILE ]; then
|
49
49
|
PID=`cat $PIDFILE`
|
50
50
|
# If the puma isn't running, run it, otherwise restart it.
|
51
|
-
if
|
51
|
+
if ps -p $PID > /dev/null; then
|
52
52
|
do_start_one_do $1
|
53
53
|
else
|
54
54
|
do_restart_one $1
|
@@ -105,7 +105,7 @@ do_stop_one() {
|
|
105
105
|
STATEFILE=$1/tmp/puma/state
|
106
106
|
if [ -e $PIDFILE ]; then
|
107
107
|
PID=`cat $PIDFILE`
|
108
|
-
if
|
108
|
+
if ps -p $PID > /dev/null; then
|
109
109
|
log_daemon_msg "---> Puma $1 isn't running."
|
110
110
|
else
|
111
111
|
log_daemon_msg "---> About to kill PID `cat $PIDFILE`"
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Puma as a service using rc.d
|
2
|
+
|
3
|
+
Manage multilpe Puma servers as services on one box using FreeBSD's rc.d service.
|
4
|
+
|
5
|
+
## Dependencies
|
6
|
+
|
7
|
+
* `jq` - a command-line json parser is needed to parse the json in the config file
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
# Copy the puma script to the rc.d directory (make sure everyone has read/execute perms)
|
12
|
+
sudo cp puma /usr/local/etc/rc.d/
|
13
|
+
|
14
|
+
# Create an empty configuration file
|
15
|
+
sudo touch /usr/local/etc/puma.conf
|
16
|
+
|
17
|
+
# Enable the puma service
|
18
|
+
sudo echo 'puma_enable="YES"' >> /etc/rc.conf
|
19
|
+
|
20
|
+
## Managing the jungle
|
21
|
+
|
22
|
+
Puma apps are referenced in /usr/local/etc/puma.conf by default.
|
23
|
+
|
24
|
+
Start the jungle running:
|
25
|
+
|
26
|
+
`service puma start`
|
27
|
+
|
28
|
+
This script will run at boot time.
|
29
|
+
|
30
|
+
|
31
|
+
You can also stop the jungle (stops ALL puma instances) by running:
|
32
|
+
|
33
|
+
`service puma stop`
|
34
|
+
|
35
|
+
|
36
|
+
To restart the jungle:
|
37
|
+
|
38
|
+
`service puma restart`
|
39
|
+
|
40
|
+
## Conventions
|
41
|
+
|
42
|
+
* The script expects:
|
43
|
+
* a config file to exist under `config/puma.rb` in your app. E.g.: `/home/apps/my-app/config/puma.rb`.
|
44
|
+
|
45
|
+
You can always change those defaults by editing the scripts.
|
46
|
+
|
47
|
+
## Here's what a minimal app's config file should have
|
48
|
+
|
49
|
+
```
|
50
|
+
{
|
51
|
+
"servers" : [
|
52
|
+
{
|
53
|
+
"dir": "/path/to/rails/project",
|
54
|
+
"user": "deploy-user",
|
55
|
+
"ruby_version": "ruby.version",
|
56
|
+
"ruby_env": "rbenv"
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
60
|
+
```
|
61
|
+
|
62
|
+
## Before starting...
|
63
|
+
|
64
|
+
You need to customise `puma.conf` to:
|
65
|
+
|
66
|
+
* Set the right user your app should be running on unless you want root to execute it!
|
67
|
+
* Set the directory of the app
|
68
|
+
* Set the ruby version to execute
|
69
|
+
* Set the ruby environment (currently set to rbenv, since that is the only ruby environment currently supported)
|
70
|
+
* Add additional server instances following the scheme in the example
|
71
|
+
|
72
|
+
## Notes:
|
73
|
+
|
74
|
+
Only rbenv is currently supported.
|
@@ -0,0 +1,61 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
#
|
3
|
+
|
4
|
+
# PROVIDE: puma
|
5
|
+
|
6
|
+
. /etc/rc.subr
|
7
|
+
|
8
|
+
name="puma"
|
9
|
+
start_cmd="puma_start"
|
10
|
+
stop_cmd="puma_stop"
|
11
|
+
restart_cmd="puma_restart"
|
12
|
+
rcvar=puma_enable
|
13
|
+
required_files=/usr/local/etc/puma.conf
|
14
|
+
|
15
|
+
puma_start()
|
16
|
+
{
|
17
|
+
server_count=$(/usr/local/bin/jq ".servers[] .ruby_env" /usr/local/etc/puma.conf | wc -l)
|
18
|
+
i=0
|
19
|
+
while [ "$i" -lt "$server_count" ]; do
|
20
|
+
rb_env=$(/usr/local/bin/jq -r ".servers[$i].ruby_env" /usr/local/etc/puma.conf)
|
21
|
+
dir=$(/usr/local/bin/jq -r ".servers[$i].dir" /usr/local/etc/puma.conf)
|
22
|
+
user=$(/usr/local/bin/jq -r ".servers[$i].user" /usr/local/etc/puma.conf)
|
23
|
+
rb_ver=$(/usr/local/bin/jq -r ".servers[$i].ruby_version" /usr/local/etc/puma.conf)
|
24
|
+
case $rb_env in
|
25
|
+
"rbenv")
|
26
|
+
su - $user -c "cd $dir && rbenv shell $rb_ver && bundle exec puma -C $dir/config/puma.rb -d"
|
27
|
+
;;
|
28
|
+
*)
|
29
|
+
;;
|
30
|
+
esac
|
31
|
+
i=$(( i + 1 ))
|
32
|
+
done
|
33
|
+
}
|
34
|
+
|
35
|
+
puma_stop()
|
36
|
+
{
|
37
|
+
pkill ruby
|
38
|
+
}
|
39
|
+
|
40
|
+
puma_restart()
|
41
|
+
{
|
42
|
+
server_count=$(/usr/local/bin/jq ".servers[] .ruby_env" /usr/local/etc/puma.conf | wc -l)
|
43
|
+
i=0
|
44
|
+
while [ "$i" -lt "$server_count" ]; do
|
45
|
+
rb_env=$(/usr/local/bin/jq -r ".servers[$i].ruby_env" /usr/local/etc/puma.conf)
|
46
|
+
dir=$(/usr/local/bin/jq -r ".servers[$i].dir" /usr/local/etc/puma.conf)
|
47
|
+
user=$(/usr/local/bin/jq -r ".servers[$i].user" /usr/local/etc/puma.conf)
|
48
|
+
rb_ver=$(/usr/local/bin/jq -r ".servers[$i].ruby_version" /usr/local/etc/puma.conf)
|
49
|
+
case $rb_env in
|
50
|
+
"rbenv")
|
51
|
+
su - $user -c "cd $dir && pkill ruby && rbenv shell $ruby_version && bundle exec puma -C $dir/config/puma.rb -d"
|
52
|
+
;;
|
53
|
+
*)
|
54
|
+
;;
|
55
|
+
esac
|
56
|
+
i=$(( i + 1 ))
|
57
|
+
done
|
58
|
+
}
|
59
|
+
|
60
|
+
load_rc_config $name
|
61
|
+
run_rc_command "$1"
|
data/tools/trickletest.rb
CHANGED
metadata
CHANGED
@@ -1,81 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Phoenix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rack
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.1'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '3.0'
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.1'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '3.0'
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rake-compiler
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
- - "~>"
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '0.8'
|
40
|
-
type: :development
|
41
|
-
prerelease: false
|
42
|
-
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
requirements:
|
44
|
-
- - "~>"
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
version: '0.8'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rdoc
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: '4.0'
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '4.0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: hoe
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '3.15'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '3.15'
|
11
|
+
date: 2018-07-13 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
75
13
|
description: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
|
76
14
|
for Ruby/Rack applications. Puma is intended for use in both development and production
|
77
|
-
environments.
|
78
|
-
|
15
|
+
environments. It's great for highly concurrent Ruby implementations such as Rubinius
|
16
|
+
and JRuby as well as as providing process worker support to support CRuby well.
|
79
17
|
email:
|
80
18
|
- evan@phx.io
|
81
19
|
executables:
|
@@ -83,33 +21,22 @@ executables:
|
|
83
21
|
- pumactl
|
84
22
|
extensions:
|
85
23
|
- ext/puma_http11/extconf.rb
|
86
|
-
extra_rdoc_files:
|
87
|
-
- ".github/issue_template.md"
|
88
|
-
- DEPLOYMENT.md
|
89
|
-
- History.md
|
90
|
-
- Manifest.txt
|
91
|
-
- README.md
|
92
|
-
- Release.md
|
93
|
-
- docs/nginx.md
|
94
|
-
- docs/signals.md
|
95
|
-
- docs/systemd.md
|
96
|
-
- tools/jungle/README.md
|
97
|
-
- tools/jungle/init.d/README.md
|
98
|
-
- tools/jungle/upstart/README.md
|
24
|
+
extra_rdoc_files: []
|
99
25
|
files:
|
100
|
-
- ".github/issue_template.md"
|
101
|
-
- DEPLOYMENT.md
|
102
|
-
- Gemfile
|
103
26
|
- History.md
|
104
27
|
- LICENSE
|
105
|
-
- Manifest.txt
|
106
28
|
- README.md
|
107
|
-
- Rakefile
|
108
|
-
- Release.md
|
109
29
|
- bin/puma
|
110
30
|
- bin/puma-wild
|
111
31
|
- bin/pumactl
|
32
|
+
- docs/architecture.md
|
33
|
+
- docs/deployment.md
|
34
|
+
- docs/images/puma-connection-flow-no-reactor.png
|
35
|
+
- docs/images/puma-connection-flow.png
|
36
|
+
- docs/images/puma-general-arch.png
|
112
37
|
- docs/nginx.md
|
38
|
+
- docs/plugins.md
|
39
|
+
- docs/restart.md
|
113
40
|
- docs/signals.md
|
114
41
|
- docs/systemd.md
|
115
42
|
- ext/puma_http11/PumaHttp11Service.java
|
@@ -126,7 +53,6 @@ files:
|
|
126
53
|
- ext/puma_http11/org/jruby/puma/Http11Parser.java
|
127
54
|
- ext/puma_http11/org/jruby/puma/MiniSSL.java
|
128
55
|
- ext/puma_http11/puma_http11.c
|
129
|
-
- gemfiles/2.1-Gemfile
|
130
56
|
- lib/puma.rb
|
131
57
|
- lib/puma/accept_nonblock.rb
|
132
58
|
- lib/puma/app/status.rb
|
@@ -166,11 +92,13 @@ files:
|
|
166
92
|
- lib/puma/thread_pool.rb
|
167
93
|
- lib/puma/util.rb
|
168
94
|
- lib/rack/handler/puma.rb
|
169
|
-
- puma.gemspec
|
170
95
|
- tools/jungle/README.md
|
171
96
|
- tools/jungle/init.d/README.md
|
172
97
|
- tools/jungle/init.d/puma
|
173
98
|
- tools/jungle/init.d/run-puma
|
99
|
+
- tools/jungle/rc.d/README.md
|
100
|
+
- tools/jungle/rc.d/puma
|
101
|
+
- tools/jungle/rc.d/puma.conf
|
174
102
|
- tools/jungle/upstart/README.md
|
175
103
|
- tools/jungle/upstart/puma-manager.conf
|
176
104
|
- tools/jungle/upstart/puma.conf
|
@@ -178,18 +106,17 @@ files:
|
|
178
106
|
homepage: http://puma.io
|
179
107
|
licenses:
|
180
108
|
- BSD-3-Clause
|
181
|
-
metadata:
|
109
|
+
metadata:
|
110
|
+
msys2_mingw_dependencies: openssl
|
182
111
|
post_install_message:
|
183
|
-
rdoc_options:
|
184
|
-
- "--main"
|
185
|
-
- README.md
|
112
|
+
rdoc_options: []
|
186
113
|
require_paths:
|
187
114
|
- lib
|
188
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
189
116
|
requirements:
|
190
117
|
- - ">="
|
191
118
|
- !ruby/object:Gem::Version
|
192
|
-
version:
|
119
|
+
version: '2.2'
|
193
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
121
|
requirements:
|
195
122
|
- - ">="
|
@@ -197,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
124
|
version: '0'
|
198
125
|
requirements: []
|
199
126
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.7.6
|
201
128
|
signing_key:
|
202
129
|
specification_version: 4
|
203
130
|
summary: Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for
|