puma 2.7.0 → 3.1.1
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 -13
- data/DEPLOYMENT.md +91 -0
- data/Gemfile +3 -2
- data/History.txt +624 -1
- data/Manifest.txt +15 -3
- data/README.md +129 -14
- data/Rakefile +3 -3
- data/bin/puma-wild +31 -0
- data/bin/pumactl +1 -1
- data/docs/nginx.md +1 -1
- data/docs/signals.md +43 -0
- data/ext/puma_http11/extconf.rb +7 -2
- data/ext/puma_http11/http11_parser.java.rl +5 -5
- data/ext/puma_http11/io_buffer.c +1 -1
- data/ext/puma_http11/mini_ssl.c +233 -18
- data/ext/puma_http11/org/jruby/puma/Http11.java +12 -3
- data/ext/puma_http11/org/jruby/puma/Http11Parser.java +39 -39
- data/ext/puma_http11/org/jruby/puma/MiniSSL.java +245 -195
- data/ext/puma_http11/puma_http11.c +12 -4
- data/lib/puma.rb +1 -0
- data/lib/puma/app/status.rb +7 -0
- data/lib/puma/binder.rb +108 -39
- data/lib/puma/capistrano.rb +23 -6
- data/lib/puma/cli.rb +141 -446
- data/lib/puma/client.rb +48 -1
- data/lib/puma/cluster.rb +207 -58
- data/lib/puma/commonlogger.rb +107 -0
- data/lib/puma/configuration.rb +262 -235
- data/lib/puma/const.rb +97 -14
- data/lib/puma/control_cli.rb +85 -77
- data/lib/puma/convenient.rb +23 -0
- data/lib/puma/daemon_ext.rb +11 -4
- data/lib/puma/detect.rb +8 -1
- data/lib/puma/dsl.rb +456 -0
- data/lib/puma/events.rb +35 -18
- data/lib/puma/jruby_restart.rb +1 -1
- data/lib/puma/launcher.rb +399 -0
- data/lib/puma/minissl.rb +49 -20
- data/lib/puma/null_io.rb +15 -0
- data/lib/puma/plugin.rb +104 -0
- data/lib/puma/plugin/tmp_restart.rb +35 -0
- data/lib/puma/rack/backports/uri/common_18.rb +56 -0
- data/lib/puma/rack/backports/uri/common_192.rb +52 -0
- data/lib/puma/rack/backports/uri/common_193.rb +29 -0
- data/lib/puma/rack/builder.rb +295 -0
- data/lib/puma/rack/urlmap.rb +90 -0
- data/lib/puma/reactor.rb +14 -1
- data/lib/puma/runner.rb +35 -17
- data/lib/puma/server.rb +161 -58
- data/lib/puma/single.rb +15 -10
- data/lib/puma/state_file.rb +29 -0
- data/lib/puma/thread_pool.rb +88 -13
- data/lib/puma/util.rb +123 -0
- data/lib/rack/handler/puma.rb +35 -29
- data/puma.gemspec +2 -4
- data/tools/jungle/init.d/README.md +2 -2
- data/tools/jungle/init.d/puma +69 -7
- data/tools/jungle/upstart/puma.conf +8 -2
- metadata +51 -71
- data/COPYING +0 -55
- data/TODO +0 -5
- data/lib/puma/rack_patch.rb +0 -45
- data/test/test_app_status.rb +0 -92
- data/test/test_cli.rb +0 -173
- data/test/test_config.rb +0 -16
- data/test/test_http10.rb +0 -27
- data/test/test_http11.rb +0 -145
- data/test/test_integration.rb +0 -165
- data/test/test_iobuffer.rb +0 -38
- data/test/test_minissl.rb +0 -25
- data/test/test_null_io.rb +0 -31
- data/test/test_persistent.rb +0 -238
- data/test/test_puma_server.rb +0 -292
- data/test/test_rack_handler.rb +0 -10
- data/test/test_rack_server.rb +0 -141
- data/test/test_tcp_rack.rb +0 -42
- data/test/test_thread_pool.rb +0 -156
- data/test/test_unix_socket.rb +0 -39
- data/test/test_ws.rb +0 -89
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZTBmNzgyZmM5NzVmYjAxMDY1ZjY4ODY3Yzc0ZDJhNWQ4NzNkNTVmNw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a8b54fddb15d1859af7c94fe4dc95d34af40e876
|
4
|
+
data.tar.gz: 90eda7e0a364e1e1ef1e887a7c74324c3c6cecd0
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MWUyOGFkZjZkYTdjNmRmOTQ0MGQxOWM3MDZmNTM4NzI0MjgzNjcxMmE5ODg3
|
11
|
-
ZWNlNmQ2OTM3ZTZmNzcyOTc1OTgyMGE2ZTUyMzUzMGQwNDk2NDQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZWZiYmM1ODc4ZGIzY2FlNTczNTE4MjEyMzkzNjgxNzhlMmM2MGUzM2ZiMTlj
|
14
|
-
MjE3MTM2MzY0Zjk5YTc2ZTc0MDA4ZmZkNjc3ODNhZjQyNDM1ZmE0MjEyMmIy
|
15
|
-
NzI5Zjg5OTZjOWI1ZDE0YjY1ZTQ0ZWYyODE2YTQwYmEyYzA4ZTE=
|
6
|
+
metadata.gz: c8197313239e459ed3f37c86e1445b5799cc899e53bbde54408cf2f51a730195674c5fb0e2ca614d926ceaaa928b3085a40762ff79542a8177eec00e22e1d284
|
7
|
+
data.tar.gz: fdd6b229cb07839741bbe9612c18ef84b856f9dea72d7cc35ed5224d254e94db285025599015ea2c2cbe80df5282a9a05b10671c8576ba656d5f1f99aced7caf
|
data/DEPLOYMENT.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# Deployment engineering for puma
|
2
|
+
|
3
|
+
Puma is software that is expected to be run in a deployed environment eventually.
|
4
|
+
You can certainly use it as your dev server only, but most people look to use
|
5
|
+
it in their production deployments as well.
|
6
|
+
|
7
|
+
To that end, this is meant to serve as a foundation of wisdom how to do that
|
8
|
+
in a way that increases happiness and decreases downtime.
|
9
|
+
|
10
|
+
## Specifying puma
|
11
|
+
|
12
|
+
Most people want to do this by putting `gem "puma"` into their Gemfile, so we'll
|
13
|
+
go ahead and assume that. Go add it now... we'll wait.
|
14
|
+
|
15
|
+
|
16
|
+
Welcome back!
|
17
|
+
|
18
|
+
## Single vs Cluster mode
|
19
|
+
|
20
|
+
Puma was originally conceived as a thread-only webserver, but grew the ability to
|
21
|
+
also use processes in version 2.
|
22
|
+
|
23
|
+
Here are some rules of thumb:
|
24
|
+
|
25
|
+
### MRI
|
26
|
+
|
27
|
+
* Use cluster mode and set the number of workers to 1.5x the number of cpu cores
|
28
|
+
in the machine, minimum 2.
|
29
|
+
* Set the number of threads to desired concurrent requests / number of workers.
|
30
|
+
Puma defaults to 8 and that's a decent number.
|
31
|
+
|
32
|
+
#### Migrating from Unicorn
|
33
|
+
|
34
|
+
* If you're migrating from unicorn though, here are some settings to start with:
|
35
|
+
* Set workers to half the number of unicorn workers you're using
|
36
|
+
* Set threads to 2
|
37
|
+
* Enjoy 50% memory savings
|
38
|
+
* As you grow more confident in the thread safety of your app, you can tune the
|
39
|
+
workers down and the threads up.
|
40
|
+
|
41
|
+
#### Worker utilization
|
42
|
+
|
43
|
+
**How do you know if you're got enough (or too many workers)?**
|
44
|
+
|
45
|
+
A good question. Due to MRI's GIL, only one thread can be executing Ruby code at a time.
|
46
|
+
But since so many apps are waiting on IO from DBs, etc., they can utilize threads
|
47
|
+
to make better use of the process.
|
48
|
+
|
49
|
+
The rule of thumb is you never want processes that are pegged all the time. This
|
50
|
+
means that there is more work to do that the process can get through. On the other
|
51
|
+
hand, if you have processes that sit around doing nothing, then they're just eating
|
52
|
+
up resources.
|
53
|
+
|
54
|
+
Watching your CPU utilization over time and aim for about 70% on average. This means
|
55
|
+
you've got capacity still but aren't starving threads.
|
56
|
+
|
57
|
+
## Daemonizing
|
58
|
+
|
59
|
+
I prefer to not daemonize my servers and use something like `runit` or `upstart` to
|
60
|
+
monitor them as child processes. This gives them fast response to crashes and
|
61
|
+
makes it easy to figure out what is going on. Additionally, unlike `unicorn`,
|
62
|
+
puma does not require daemonization to do zero-downtime restarts.
|
63
|
+
|
64
|
+
I see people using daemonization because they start puma directly via capistrano
|
65
|
+
task and thus want it to live on past the `cap deploy`. To this people I said:
|
66
|
+
You need to be using a process monitor. Nothing is making sure puma stays up in
|
67
|
+
this scenario! You're just waiting for something weird to happen, puma to die,
|
68
|
+
and to get paged at 3am. Do yourself a favor, at least the process monitoring
|
69
|
+
your OS comes with, be it `sysvinit`, `upstart`, or `systemd`. Or branch out
|
70
|
+
and use `runit` or hell, even `monit`.
|
71
|
+
|
72
|
+
## Restarting
|
73
|
+
|
74
|
+
You probably will want to deploy some new code at some point, and you'd like
|
75
|
+
puma to start running that new code. Minimizing the amount of time the server
|
76
|
+
is unavailable would be nice as well. Here's how to do it:
|
77
|
+
|
78
|
+
1. Don't use `preload!`. This dirties the master process and means it will have
|
79
|
+
to shutdown all the workers and re-exec itself to get your new code. It is not compatible with phased-restart and `prune_bundler` as well.
|
80
|
+
|
81
|
+
1. Use `prune_bundler`. This makes it so that the cluster master will detach itself
|
82
|
+
from a Bundler context on start. This allows the cluster workers to load your app
|
83
|
+
and start a brand new Bundler context within the worker only. This means your
|
84
|
+
master remains pristine and can live on between new releases of your code.
|
85
|
+
|
86
|
+
1. Use phased-restart (`SIGUSR1` or `pumactl phased-restart`). This tells the master
|
87
|
+
to kill off one worker at a time and restart them in your new code. This minimizes
|
88
|
+
downtime and staggers the restart nicely. **WARNING** This means that both your
|
89
|
+
old code and your new code will be running concurrently. Most deployment solutions
|
90
|
+
already cause that, but it's worth warning you about it again. Be careful with your
|
91
|
+
migrations, etc!
|
data/Gemfile
CHANGED
data/History.txt
CHANGED
@@ -1,3 +1,626 @@
|
|
1
|
+
=== 3.1.1 / 2016-03-17
|
2
|
+
|
3
|
+
* 4 bug fixes:
|
4
|
+
* Disable USR1 usage on JRuby
|
5
|
+
* Fixes #922 - Correctly define file encoding as UTF-8
|
6
|
+
* Set a more explicit SERVER_SOFTWARE Rack variable
|
7
|
+
* Show RUBY_ENGINE_VERSION if available. Fixes #923
|
8
|
+
|
9
|
+
* 3 PRs merged:
|
10
|
+
* Merge pull request #912 from tricknotes/fix-allow-failures-in-travis-yml
|
11
|
+
* Merge pull request #921 from swrobel/patch-1
|
12
|
+
* Merge pull request #924 from tbrisker/patch-1
|
13
|
+
|
14
|
+
=== 3.1.0 / 2016-03-05
|
15
|
+
|
16
|
+
* 1 minor feature:
|
17
|
+
* Add 'import' directive to config file. Fixes #916
|
18
|
+
|
19
|
+
* 5 bug fixes:
|
20
|
+
* Add 'fetch' to options. Fixes #913
|
21
|
+
* Fix jruby daemonization. Fixes #918
|
22
|
+
* Recreate the proper args manually. Fixes #910
|
23
|
+
* Require 'time' to get iso8601. Fixes #914
|
24
|
+
|
25
|
+
=== 3.0.2 / 2016-02-26
|
26
|
+
|
27
|
+
* 5 bug fixes:
|
28
|
+
|
29
|
+
* Fix 'undefined local variable or method `pid` for #<Puma::ControlCLI:0x007f185fcef968>' when execute pumactl with `--pid` option.
|
30
|
+
* Fix 'undefined method `windows?` for Puma:Module' when execute pumactl.
|
31
|
+
* Harden tmp_restart against errors related to the restart file
|
32
|
+
* Make `plugin :tmp_restart` behavior correct in Windows.
|
33
|
+
* fix uninitialized constant Puma::ControlCLI::StateFile
|
34
|
+
|
35
|
+
* 3 PRs merged:
|
36
|
+
|
37
|
+
* Merge pull request #901 from mitto/fix-pumactl-uninitialized-constant-statefile
|
38
|
+
* Merge pull request #902 from corrupt952/fix_undefined_method_and_variable_when_execute_pumactl
|
39
|
+
* Merge pull request #905 from Eric-Guo/master
|
40
|
+
|
41
|
+
=== 3.0.1 / 2016-02-25
|
42
|
+
|
43
|
+
* 1 bug fix:
|
44
|
+
|
45
|
+
* Removed the experimental support for async.callback as it broke
|
46
|
+
websockets entirely. Seems no server has both hijack and async.callback
|
47
|
+
and thus faye is totally confused what to do and doesn't work.
|
48
|
+
|
49
|
+
=== 3.0.0 / 2016-02-25
|
50
|
+
|
51
|
+
* 2 major changes:
|
52
|
+
|
53
|
+
* Ruby pre-2.0 is no longer supported. We'll do our best to not add
|
54
|
+
features that break those rubies but will no longer be testing
|
55
|
+
with them.
|
56
|
+
* Don't log requests by default. Fixes #852
|
57
|
+
|
58
|
+
* 2 major features:
|
59
|
+
|
60
|
+
* Plugin support! Plugins can interact with configuration as well
|
61
|
+
as provide augment server functionality!
|
62
|
+
* Experimental env['async.callback'] support
|
63
|
+
|
64
|
+
* 4 minor features:
|
65
|
+
|
66
|
+
* Listen to unix socket with provided backlog if any
|
67
|
+
* Improves the clustered stats to report worker stats
|
68
|
+
* Pass the env to the lowlevel_error handler. Fixes #854
|
69
|
+
* Treat path-like hosts as unix sockets. Fixes #824
|
70
|
+
|
71
|
+
* 5 bug fixes:
|
72
|
+
|
73
|
+
* Clean thread locals when using keepalive. Fixes #823
|
74
|
+
* Cleanup compiler warnings. Fixes #815
|
75
|
+
* Expose closed? for use by the reactor. Fixes #835
|
76
|
+
* Move signal handlers to separate method to prevent space leak. Fixes #798
|
77
|
+
* Signal not full on worker exit #876
|
78
|
+
|
79
|
+
* 5 doc fixes:
|
80
|
+
|
81
|
+
* Update README.md with various grammar fixes
|
82
|
+
* Use newest version of Minitest
|
83
|
+
* Add directory configuration docs, fix typo [ci skip]
|
84
|
+
* Remove old COPYING notice. Fixes #849
|
85
|
+
|
86
|
+
* 10 merged PRs:
|
87
|
+
|
88
|
+
* Merge pull request #871 from deepj/travis
|
89
|
+
* Merge pull request #874 from wallclockbuilder/master
|
90
|
+
* Merge pull request #883 from dadah89/igor/trim_only_worker
|
91
|
+
* Merge pull request #884 from uistudio/async-callback
|
92
|
+
* Merge pull request #888 from mlarraz/tick_minitest
|
93
|
+
* Merge pull request #890 from todd/directory_docs
|
94
|
+
* Merge pull request #891 from ctaintor/improve_clustered_status
|
95
|
+
* Merge pull request #893 from spastorino/add_missing_require
|
96
|
+
* Merge pull request #897 from zendesk/master
|
97
|
+
* Merge pull request #899 from kch/kch-readme-fixes
|
98
|
+
|
99
|
+
=== 2.16.0 / 2016-01-27
|
100
|
+
|
101
|
+
* 7 minor features:
|
102
|
+
|
103
|
+
* Add 'set_remote_address' config option
|
104
|
+
* Allow to run puma in silent mode
|
105
|
+
* Expose cli options in DSL
|
106
|
+
* Support passing JRuby keystore info in ssl_bind DSL
|
107
|
+
* Allow umask for unix:/// style control urls
|
108
|
+
* Expose `old_worker_count` in stats url
|
109
|
+
* Support TLS client auth (verify_mode) in jruby
|
110
|
+
|
111
|
+
* 7 bug fixes:
|
112
|
+
|
113
|
+
* Don't persist before_fork hook in state file
|
114
|
+
* Reload bundler before pulling in rack. Fixes #859
|
115
|
+
* Remove NEWRELIC_DISPATCHER env variable
|
116
|
+
* Cleanup C code
|
117
|
+
* Use Timeout.timeout instead of Object.timeout
|
118
|
+
* Make phased restarts faster
|
119
|
+
* Ignore the case of certain headers, because HTTP
|
120
|
+
|
121
|
+
* 1 doc changes:
|
122
|
+
|
123
|
+
* Test against the latest Ruby 2.1, 2.2, 2.3, head and JRuby 9.0.4.0 on Travis
|
124
|
+
|
125
|
+
* 12 merged PRs
|
126
|
+
* Merge pull request #822 from kwugirl/remove_NEWRELIC_DISPATCHER
|
127
|
+
* Merge pull request #833 from joemiller/jruby-client-tls-auth
|
128
|
+
* Merge pull request #837 from YuriSolovyov/ssl-keystore-jruby
|
129
|
+
* Merge pull request #839 from mezuka/master
|
130
|
+
* Merge pull request #845 from deepj/timeout-deprecation
|
131
|
+
* Merge pull request #846 from sriedel/strip_before_fork
|
132
|
+
* Merge pull request #850 from deepj/travis
|
133
|
+
* Merge pull request #853 from Jeffrey6052/patch-1
|
134
|
+
* Merge pull request #857 from zendesk/faster_phased_restarts
|
135
|
+
* Merge pull request #858 from mlarraz/fix_some_warnings
|
136
|
+
* Merge pull request #860 from zendesk/expose_old_worker_count
|
137
|
+
* Merge pull request #861 from zendesk/allow_control_url_umask
|
138
|
+
|
139
|
+
=== 2.15.3 / 2015-11-07
|
140
|
+
|
141
|
+
* 1 bug fix:
|
142
|
+
|
143
|
+
* Fix JRuby parser
|
144
|
+
|
145
|
+
=== 2.15.2 / 2015-11-06
|
146
|
+
|
147
|
+
* 2 bug fixes:
|
148
|
+
* ext/puma_http11: handle duplicate headers as per RFC
|
149
|
+
* Only set ctx.ca iff there is a params['ca'] to set with.
|
150
|
+
|
151
|
+
* 2 PRs merged:
|
152
|
+
* Merge pull request #818 from unleashed/support-duplicate-headers
|
153
|
+
* Merge pull request #819 from VictorLowther/fix-ca-and-verify_null-exception
|
154
|
+
|
155
|
+
=== 2.15.1 / 2015-11-06
|
156
|
+
|
157
|
+
* 1 bug fix:
|
158
|
+
|
159
|
+
* Allow older openssl versions
|
160
|
+
|
161
|
+
=== 2.15.0 / 2015-11-06
|
162
|
+
|
163
|
+
* 6 minor features:
|
164
|
+
* Allow setting ca without setting a verify mode
|
165
|
+
* Make jungle for init.d support rbenv
|
166
|
+
* Use SSL_CTX_use_certificate_chain_file for full chain
|
167
|
+
* cluster: add worker_boot_timeout option
|
168
|
+
* configuration: allow empty tags to mean no tag desired
|
169
|
+
* puma/cli: support specifying STD{OUT,ERR} redirections and append mode
|
170
|
+
|
171
|
+
* 5 bug fixes:
|
172
|
+
* Disable SSL Compression
|
173
|
+
* Fix bug setting worker_directory when using a symlink directory
|
174
|
+
* Fix error message in DSL that was slightly inaccurate
|
175
|
+
* Pumactl: set correct process name. Fixes #563
|
176
|
+
* thread_pool: fix race condition when shutting down workers
|
177
|
+
|
178
|
+
* 10 doc fixes:
|
179
|
+
* Add before_fork explanation in Readme.md
|
180
|
+
* Correct spelling in DEPLOYMENT.md
|
181
|
+
* Correct spelling in docs/nginx.md
|
182
|
+
* Fix spelling errors.
|
183
|
+
* Fix typo in deployment description
|
184
|
+
* Fix typos (it's -> its) in events.rb and server.rb
|
185
|
+
* fixing for typo mentioned in #803
|
186
|
+
* Spelling correction for README
|
187
|
+
* thread_pool: fix typos in comment
|
188
|
+
* More explicit docs for worker_timeout
|
189
|
+
|
190
|
+
* 18 PRs merged:
|
191
|
+
* Merge pull request #768 from nathansamson/patch-1
|
192
|
+
* Merge pull request #773 from rossta/spelling_corrections
|
193
|
+
* Merge pull request #774 from snow/master
|
194
|
+
* Merge pull request #781 from sunsations/fix-typo
|
195
|
+
* Merge pull request #791 from unleashed/allow_empty_tags
|
196
|
+
* Merge pull request #793 from robdimarco/fix-working-directory-symlink-bug
|
197
|
+
* Merge pull request #794 from peterkeen/patch-1
|
198
|
+
* Merge pull request #795 from unleashed/redirects-from-cmdline
|
199
|
+
* Merge pull request #796 from cschneid/fix_dsl_message
|
200
|
+
* Merge pull request #799 from annafw/master
|
201
|
+
* Merge pull request #800 from liamseanbrady/fix_typo
|
202
|
+
* Merge pull request #801 from scottjg/ssl-chain-file
|
203
|
+
* Merge pull request #802 from scottjg/ssl-crimes
|
204
|
+
* Merge pull request #804 from burningTyger/patch-2
|
205
|
+
* Merge pull request #809 from unleashed/threadpool-fix-race-in-shutdown
|
206
|
+
* Merge pull request #810 from vlmonk/fix-pumactl-restart-bug
|
207
|
+
* Merge pull request #814 from schneems/schneems/worker_timeout-docs
|
208
|
+
* Merge pull request #817 from unleashed/worker-boot-timeout
|
209
|
+
|
210
|
+
=== 2.14.0 / 2015-09-18
|
211
|
+
|
212
|
+
* 1 minor feature:
|
213
|
+
* Make building with SSL support optional
|
214
|
+
|
215
|
+
* 1 bug fix:
|
216
|
+
* Use Rack::Builder if available. Fixes #735
|
217
|
+
|
218
|
+
=== 2.13.4 / 2015-08-16
|
219
|
+
|
220
|
+
* 1 bug fix:
|
221
|
+
* Use the environment possible set by the config early and from
|
222
|
+
the config file later (if set).
|
223
|
+
|
224
|
+
=== 2.13.3 / 2015-08-15
|
225
|
+
|
226
|
+
Seriously, I need to revamp config with tests.
|
227
|
+
|
228
|
+
* 1 bug fix:
|
229
|
+
* Fix preserving options before cleaning for state. Fixes #769
|
230
|
+
|
231
|
+
=== 2.13.2 / 2015-08-15
|
232
|
+
|
233
|
+
The "clearly I don't have enough tests for the config" release.
|
234
|
+
|
235
|
+
* 1 bug fix:
|
236
|
+
* Fix another place binds wasn't initialized. Fixes #767
|
237
|
+
|
238
|
+
=== 2.13.1 / 2015-08-15
|
239
|
+
|
240
|
+
* 2 bug fixes:
|
241
|
+
* Fix binds being masked in config files. Fixes #765
|
242
|
+
* Use options from the config file properly in pumactl. Fixes #764
|
243
|
+
|
244
|
+
=== 2.13.0 / 2015-08-14
|
245
|
+
|
246
|
+
* 1 minor feature:
|
247
|
+
* Add before_fork hooks option.
|
248
|
+
|
249
|
+
* 3 bug fixes:
|
250
|
+
* Check for OPENSSL_NO_ECDH before using ECDH
|
251
|
+
* Eliminate logging overhead from JRuby SSL
|
252
|
+
* Prefer cli options over config file ones. Fixes #669
|
253
|
+
|
254
|
+
* 1 deprecation:
|
255
|
+
* Add deprecation warning to capistrano.rb. Fixes #673
|
256
|
+
|
257
|
+
* 4 PRs merged:
|
258
|
+
* Merge pull request #668 from kcollignon/patch-1
|
259
|
+
* Merge pull request #754 from nathansamson/before_boot
|
260
|
+
* Merge pull request #759 from BenV/fix-centos6-build
|
261
|
+
* Merge pull request #761 from looker/no-log
|
262
|
+
|
263
|
+
=== 2.12.3 / 2015-08-03
|
264
|
+
|
265
|
+
* 8 minor bugs fixed:
|
266
|
+
* Fix Capistrano 'uninitialized constant Puma' error.
|
267
|
+
* Fix some ancient and incorrect error handling code
|
268
|
+
* Fix uninitialized constant error
|
269
|
+
* Remove toplevel rack interspection, require rack on load instead
|
270
|
+
* Skip empty parts when chunking
|
271
|
+
* Switch from inject to each in config_ru_binds iteration
|
272
|
+
* Wrap SSLv3 spec in version guard.
|
273
|
+
* ruby 1.8.7 compatibility patches
|
274
|
+
|
275
|
+
* 4 PRs merged:
|
276
|
+
* Merge pull request #742 from deivid-rodriguez/fix_missing_require
|
277
|
+
* Merge pull request #743 from matthewd/skip-empty-chunks
|
278
|
+
* Merge pull request #749 from huacnlee/fix-cap-uninitialized-puma-error
|
279
|
+
* Merge pull request #751 from costi/compat_1_8_7
|
280
|
+
|
281
|
+
* 1 test fix:
|
282
|
+
* Add 1.8.7, rbx-1 (allow failures) to Travis.
|
283
|
+
|
284
|
+
=== 2.12.2 / 2015-07-17
|
285
|
+
|
286
|
+
* 2 bug fix:
|
287
|
+
* Pull over and use Rack::URLMap. Fixes #741
|
288
|
+
* Stub out peercert on JRuby for now. Fixes #739
|
289
|
+
|
290
|
+
=== 2.12.1 / 2015-07-16
|
291
|
+
|
292
|
+
* 2 bug fixes:
|
293
|
+
* Use a constant format. Fixes #737
|
294
|
+
* Use strerror for Windows sake. Fixes #733
|
295
|
+
|
296
|
+
* 1 doc change:
|
297
|
+
* typo fix: occured -> occurred
|
298
|
+
|
299
|
+
* 1 PR merged:
|
300
|
+
* Merge pull request #736 from paulanunda/paulanunda/typo-fix
|
301
|
+
|
302
|
+
=== 2.12.0 / 2015-07-14
|
303
|
+
|
304
|
+
* 13 bug fixes:
|
305
|
+
* Add thread reaping to thread pool
|
306
|
+
* Do not automatically use chunked responses when hijacked
|
307
|
+
* Do not suppress Content-Length on partial hijack
|
308
|
+
* Don't allow any exceptions to terminate a thread
|
309
|
+
* Handle ENOTCONN client disconnects when setting REMOTE_ADDR
|
310
|
+
* Handle very early exit of cluster mode. Fixes #722
|
311
|
+
* Install rack when running tests on travis to use rack/lint
|
312
|
+
* Make puma -v and -h return success exit code
|
313
|
+
* Make pumactl load config/puma.rb by default
|
314
|
+
* Pass options from pumactl properly when pruning. Fixes #694
|
315
|
+
* Remove rack dependency. Fixes #705
|
316
|
+
* Remove the default Content-Type: text/plain
|
317
|
+
* Add Client Side Certificate Auth
|
318
|
+
|
319
|
+
* 8 doc/test changes:
|
320
|
+
* Added example sourcing of environment vars
|
321
|
+
* Added tests for bind configuration on rackup file
|
322
|
+
* Fix example config text
|
323
|
+
* Update DEPLOYMENT.md
|
324
|
+
* Update Readme with example of custom error handler
|
325
|
+
* ci: Improve Travis settings
|
326
|
+
* ci: Start running tests against JRuby 9k on Travis
|
327
|
+
* ci: Convert to container infrastructure for travisci
|
328
|
+
|
329
|
+
* 2 ops changes:
|
330
|
+
* Check for system-wide rbenv
|
331
|
+
* capistrano: Add additional env when start rails
|
332
|
+
|
333
|
+
* 16 PRs merged:
|
334
|
+
* Merge pull request #686 from jjb/patch-2
|
335
|
+
* Merge pull request #693 from rob-murray/update-example-config
|
336
|
+
* Merge pull request #697 from spk/tests-bind-on-rackup-file
|
337
|
+
* Merge pull request #699 from deees/fix/require_rack_builder
|
338
|
+
* Merge pull request #701 from deepj/master
|
339
|
+
* Merge pull request #702 from Jimdo/thread-reaping
|
340
|
+
* Merge pull request #703 from deepj/travis
|
341
|
+
* Merge pull request #704 from grega/master
|
342
|
+
* Merge pull request #709 from lian/master
|
343
|
+
* Merge pull request #711 from julik/master
|
344
|
+
* Merge pull request #712 from yakara-ltd/pumactl-default-config
|
345
|
+
* Merge pull request #715 from RobotJiang/master
|
346
|
+
* Merge pull request #725 from rwz/master
|
347
|
+
* Merge pull request #726 from strenuus/handle-client-disconnect
|
348
|
+
* Merge pull request #729 from allaire/patch-1
|
349
|
+
* Merge pull request #730 from iamjarvo/container-infrastructure
|
350
|
+
|
351
|
+
=== 2.11.3 / 2015-05-18
|
352
|
+
|
353
|
+
* 5 bug fixes:
|
354
|
+
* Be sure to unlink tempfiles after a request. Fixes #690
|
355
|
+
* Coerce the key to a string before checking. (thar be symbols). Fixes #684
|
356
|
+
* Fix hang on bad SSL handshake
|
357
|
+
* Remove `enable_SSLv3` support from JRuby
|
358
|
+
|
359
|
+
* 1 PR merged:
|
360
|
+
* Merge pull request #698 from looker/hang-handshake
|
361
|
+
|
362
|
+
=== 2.11.2 / 2015-04-11
|
363
|
+
|
364
|
+
* 2 minor features:
|
365
|
+
* Add `on_worker_fork` hook, which allows to mimic Unicorn's behavior
|
366
|
+
* Add shutdown_debug config option
|
367
|
+
|
368
|
+
* 4 bug fixes:
|
369
|
+
* Fix the Config constants not being available in the DSL. Fixes #683
|
370
|
+
* Ignore multiple port declarations
|
371
|
+
* Proper 'Connection' header handling compatible with HTTP 1.[01] protocols
|
372
|
+
* Use "Puma" instead of "puma" to reporting to New Relic
|
373
|
+
|
374
|
+
* 1 doc fixes:
|
375
|
+
* Add Gitter badge.
|
376
|
+
|
377
|
+
* 6 PRs merged:
|
378
|
+
* Merge pull request #657 from schneems/schneems/puma-once-port
|
379
|
+
* Merge pull request #658 from Tomohiro/newrelic-dispatcher-default-update
|
380
|
+
* Merge pull request #662 from basecrm/connection-compatibility
|
381
|
+
* Merge pull request #664 from fxposter/on-worker-fork
|
382
|
+
* Merge pull request #667 from JuanitoFatas/doc/gemspec
|
383
|
+
* Merge pull request #672 from chulkilee/refactor
|
384
|
+
|
385
|
+
=== 2.11.1 / 2015-02-11
|
386
|
+
|
387
|
+
* 2 bug fixes:
|
388
|
+
* Avoid crash in strange restart conditions
|
389
|
+
* Inject the GEM_HOME that bundler into puma-wild's env. Fixes #653
|
390
|
+
|
391
|
+
* 2 PRs merged:
|
392
|
+
* Merge pull request #644 from bpaquet/master
|
393
|
+
* Merge pull request #646 from mkonecny/master
|
394
|
+
|
395
|
+
=== 2.11.0 / 2015-01-20
|
396
|
+
|
397
|
+
* 9 bug fixes:
|
398
|
+
* Add mode as an additional bind option to unix sockets. Fixes #630
|
399
|
+
* Advertise HTTPS properly after a hot restart
|
400
|
+
* Don't write lowlevel_error_handler to state
|
401
|
+
* Fix phased restart with stuck requests
|
402
|
+
* Handle spaces in the path properly. Fixes #622
|
403
|
+
* Set a default REMOTE_ADDR to avoid using peeraddr on unix sockets. Fixes #583
|
404
|
+
* Skip device number checking on jruby. Fixes #586
|
405
|
+
* Update extconf.rb to compile correctly on OS X
|
406
|
+
* redirect io right after daemonizing so startup errors are shown. Fixes #359
|
407
|
+
|
408
|
+
* 6 minor features:
|
409
|
+
* Add a configuration option that prevents puma from queueing requests.
|
410
|
+
* Add reload_worker_directory
|
411
|
+
* Add the ability to pass environment variables to the init script (for Jungle).
|
412
|
+
* Add the proctitle tag to the worker. Fixes #633
|
413
|
+
* Infer a proctitle tag based on the directory
|
414
|
+
* Update lowlevel error message to be more meaningful.
|
415
|
+
|
416
|
+
* 10 PRs merged:
|
417
|
+
* Merge pull request #478 from rubencaro/master
|
418
|
+
* Merge pull request #610 from kwilczynski/master
|
419
|
+
* Merge pull request #611 from jasonl/better-lowlevel-message
|
420
|
+
* Merge pull request #616 from jc00ke/master
|
421
|
+
* Merge pull request #623 from raldred/patch-1
|
422
|
+
* Merge pull request #628 from rdpoor/master
|
423
|
+
* Merge pull request #634 from deepj/master
|
424
|
+
* Merge pull request #637 from raskhadafi/patch-1
|
425
|
+
* Merge pull request #639 from ebeigarts/fix-phased-restarts
|
426
|
+
* Merge pull request #640 from codehotter/issue-612-dependent-requests-deadlock
|
427
|
+
|
428
|
+
=== 2.10.2 / 2014-11-26
|
429
|
+
|
430
|
+
* 1 bug fix:
|
431
|
+
* Conditionalize thread local cleaning, fixes perf degradation fix
|
432
|
+
The code to clean out all Thread locals adds pretty significant
|
433
|
+
overhead to a each request, so it has to be turned on explicitly
|
434
|
+
if a user needs it.
|
435
|
+
|
436
|
+
=== 2.10.1 / 2014-11-24
|
437
|
+
|
438
|
+
* 1 bug fix:
|
439
|
+
* Load the app after daemonizing because the app might start threads.
|
440
|
+
|
441
|
+
This change means errors loading the app are now reported only in the redirected
|
442
|
+
stdout/stderr.
|
443
|
+
|
444
|
+
If you're app has problems starting up, start it without daemon mode initially
|
445
|
+
to test.
|
446
|
+
|
447
|
+
=== 2.10.0 / 2014-11-23
|
448
|
+
|
449
|
+
* 3 minor features:
|
450
|
+
* Added on_worker_shutdown hook mechanism
|
451
|
+
* Allow binding to ipv6 addresses for ssl URIs
|
452
|
+
* Warn about any threads started during app preload
|
453
|
+
|
454
|
+
* 5 bug fixes:
|
455
|
+
* Clean out a threads local data before doing work
|
456
|
+
* Disable SSLv3. Fixes #591
|
457
|
+
* First change the directory to use the correct Gemfile.
|
458
|
+
* Only use config.ru binds if specified. Fixes #606
|
459
|
+
* Strongish cipher suite with FS support for some browsers
|
460
|
+
|
461
|
+
* 2 doc changes:
|
462
|
+
* Change umask examples to more permissive values
|
463
|
+
* fix typo in README.md
|
464
|
+
|
465
|
+
* 9 Merged PRs:
|
466
|
+
* Merge pull request #560 from raskhadafi/prune_bundler-bug
|
467
|
+
* Merge pull request #566 from sheltond/master
|
468
|
+
* Merge pull request #593 from andruby/patch-1
|
469
|
+
* Merge pull request #594 from hassox/thread-cleanliness
|
470
|
+
* Merge pull request #596 from burningTyger/patch-1
|
471
|
+
* Merge pull request #601 from sorentwo/friendly-umask
|
472
|
+
* Merge pull request #602 from 1334/patch-1
|
473
|
+
* Merge pull request #608 from Gu1/master
|
474
|
+
* Merge remote-tracking branch 'origin/pr/538'
|
475
|
+
|
476
|
+
=== 2.9.2 / 2014-10-25
|
477
|
+
|
478
|
+
* 8 bug fixes:
|
479
|
+
* Fix puma-wild handling a restart properly. Fixes #550
|
480
|
+
* JRuby SSL POODLE update
|
481
|
+
* Keep deprecated features warnings
|
482
|
+
* Log the current time when Puma shuts down.
|
483
|
+
* Fix cross-platform extension library detection
|
484
|
+
* Use the correct Windows names for OpenSSL.
|
485
|
+
* Better error logging during startup
|
486
|
+
* Fixing sexist error messages
|
487
|
+
|
488
|
+
* 6 PRs merged:
|
489
|
+
* Merge pull request #549 from bsnape/log-shutdown-time
|
490
|
+
* Merge pull request #553 from lowjoel/master
|
491
|
+
* Merge pull request #568 from mariuz/patch-1
|
492
|
+
* Merge pull request #578 from danielbuechele/patch-1
|
493
|
+
* Merge pull request #581 from alexch/slightly-better-logging
|
494
|
+
* Merge pull request #590 from looker/jruby_disable_sslv3
|
495
|
+
|
496
|
+
=== 2.9.1 / 2014-09-05
|
497
|
+
|
498
|
+
* 4 bug fixes:
|
499
|
+
* Cleanup the SSL related structures properly, fixes memory leak
|
500
|
+
* Fix thread spawning edge case.
|
501
|
+
* Force a worker check after a worker boots, don't wait 5sec. Fixes #574
|
502
|
+
* Implement SIGHUP for logs reopening
|
503
|
+
|
504
|
+
* 2 PRs merged:
|
505
|
+
* Merge pull request #561 from theoldreader/sighup
|
506
|
+
* Merge pull request #570 from havenwood/spawn-thread-edge-case
|
507
|
+
|
508
|
+
=== 2.9.0 / 2014-07-12
|
509
|
+
|
510
|
+
* 1 minor feature:
|
511
|
+
* Add SSL support for JRuby
|
512
|
+
|
513
|
+
* 3 bug fixes:
|
514
|
+
* Typo BUNDLER_GEMFILE -> BUNDLE_GEMFILE
|
515
|
+
* Use fast_write because we can't trust syswrite
|
516
|
+
* pumactl - do not modify original ARGV
|
517
|
+
|
518
|
+
* 4 doc fixes:
|
519
|
+
* BSD-3-Clause over BSD to avoid confusion
|
520
|
+
* Deploy doc: clarification of the GIL
|
521
|
+
* Fix typo in DEPLOYMENT.md
|
522
|
+
* Update README.md
|
523
|
+
|
524
|
+
* 6 PRs merged:
|
525
|
+
* Merge pull request #520 from misfo/patch-2
|
526
|
+
* Merge pull request #530 from looker/jruby-ssl
|
527
|
+
* Merge pull request #537 from vlmonk/patch-1
|
528
|
+
* Merge pull request #540 from allaire/patch-1
|
529
|
+
* Merge pull request #544 from chulkilee/bsd-3-clause
|
530
|
+
* Merge pull request #551 from jcxplorer/patch-1
|
531
|
+
|
532
|
+
=== 2.8.2 / 2014-04-12
|
533
|
+
|
534
|
+
* 4 bug fixes:
|
535
|
+
* During upgrade, change directory in main process instead of workers.
|
536
|
+
* Close the client properly on error
|
537
|
+
* Capistrano: fallback from phased restart to start when not started
|
538
|
+
* Allow tag option in conf file
|
539
|
+
|
540
|
+
* 4 doc fixes:
|
541
|
+
* Fix Puma daemon service README typo
|
542
|
+
* `preload_app!` instead of `preload_app`
|
543
|
+
* add preload_app and prune_bundler to example config
|
544
|
+
* allow changing of worker_timeout in config file
|
545
|
+
|
546
|
+
* 11 PRs merged:
|
547
|
+
* Merge pull request #487 from ckuttruff/master
|
548
|
+
* Merge pull request #492 from ckuttruff/master
|
549
|
+
* Merge pull request #493 from alepore/config_tag
|
550
|
+
* Merge pull request #503 from mariuz/patch-1
|
551
|
+
* Merge pull request #505 from sammcj/patch-1
|
552
|
+
* Merge pull request #506 from FlavourSys/config_worker_timeout
|
553
|
+
* Merge pull request #510 from momer/rescue-block-handle-servers-fix
|
554
|
+
* Merge pull request #511 from macool/patch-1
|
555
|
+
* Merge pull request #514 from edogawaconan/refactor_env
|
556
|
+
* Merge pull request #517 from misfo/patch-1
|
557
|
+
* Merge pull request #518 from LongMan/master
|
558
|
+
|
559
|
+
=== 2.8.1 / 2014-03-06
|
560
|
+
|
561
|
+
* 1 bug fixes:
|
562
|
+
* Run puma-wild with proper deps for prune_bundler
|
563
|
+
|
564
|
+
* 2 doc changes:
|
565
|
+
* Described the configuration file finding behavior added in 2.8.0 and how to disable it.
|
566
|
+
* Start the deployment doc
|
567
|
+
|
568
|
+
* 6 PRs merged:
|
569
|
+
* Merge pull request #471 from arthurnn/fix_test
|
570
|
+
* Merge pull request #485 from joneslee85/patch-9
|
571
|
+
* Merge pull request #486 from joshwlewis/patch-1
|
572
|
+
* Merge pull request #490 from tobinibot/patch-1
|
573
|
+
* Merge pull request #491 from brianknight10/clarify-no-config
|
574
|
+
|
575
|
+
=== 2.8.0 / 2014-02-28
|
576
|
+
|
577
|
+
* 8 minor features:
|
578
|
+
* Add ability to autoload a config file. Fixes #438
|
579
|
+
* Add ability to detect and terminate hung workers. Fixes #333
|
580
|
+
* Add booted_workers to stats response
|
581
|
+
* Add config to customize the default error message
|
582
|
+
* Add prune_bundler option
|
583
|
+
* Add worker indexes, expose them via on_worker_boot. Fixes #440
|
584
|
+
* Add pretty process name
|
585
|
+
* Show the ruby version in use
|
586
|
+
|
587
|
+
* 7 bug fixes:
|
588
|
+
* Added 408 status on timeout.
|
589
|
+
* Be more hostile with sockets that write block. Fixes #449
|
590
|
+
* Expect at_exit to exclusively remove the pidfile. Fixes #444
|
591
|
+
* Expose latency and listen backlog via bind query. Fixes #370
|
592
|
+
* JRuby raises IOError if the socket is there. Fixes #377
|
593
|
+
* Process requests fairly. Fixes #406
|
594
|
+
* Rescue SystemCallError as well. Fixes #425
|
595
|
+
|
596
|
+
* 4 doc changes:
|
597
|
+
* Add 2.1.0 to the matrix
|
598
|
+
* Add Code Climate badge to README
|
599
|
+
* Create signals.md
|
600
|
+
* Set the license to BSD. Fixes #432
|
601
|
+
|
602
|
+
* 14 PRs merged:
|
603
|
+
* Merge pull request #428 from alexeyfrank/capistrano_default_hooks
|
604
|
+
* Merge pull request #429 from namusyaka/revert-const_defined
|
605
|
+
* Merge pull request #431 from mrb/master
|
606
|
+
* Merge pull request #433 from alepore/process-name
|
607
|
+
* Merge pull request #437 from ibrahima/master
|
608
|
+
* Merge pull request #446 from sudara/master
|
609
|
+
* Merge pull request #451 from pwiebe/status_408
|
610
|
+
* Merge pull request #453 from joevandyk/patch-1
|
611
|
+
* Merge pull request #470 from arthurnn/fix_458
|
612
|
+
* Merge pull request #472 from rubencaro/master
|
613
|
+
* Merge pull request #480 from jjb/docs-on-running-test-suite
|
614
|
+
* Merge pull request #481 from schneems/master
|
615
|
+
* Merge pull request #482 from prathamesh-sonpatki/signals-doc-cleanup
|
616
|
+
* Merge pull request #483 from YotpoLtd/master
|
617
|
+
|
618
|
+
=== 2.7.1 / 2013-12-05
|
619
|
+
|
620
|
+
* 1 bug fix:
|
621
|
+
|
622
|
+
* Keep STDOUT/STDERR the right mode. Fixes #422
|
623
|
+
|
1
624
|
=== 2.7.0 / 2013-12-03
|
2
625
|
|
3
626
|
* 1 minor feature:
|
@@ -221,7 +844,7 @@ RailsConf 2013 edition!
|
|
221
844
|
* Close the binder in the right place. Fixes #192
|
222
845
|
* Handle early term in workers. Fixes #206
|
223
846
|
* Make sure that the default port is 80 when the request doesn't include HTTP_X_FORWARDED_PROTO.
|
224
|
-
* Prevent Errno::EBADF errors on restart when running ruby 2.0
|
847
|
+
* Prevent Errno::EBADF errors on restart when running ruby 2.0
|
225
848
|
* Record the proper @master_pid
|
226
849
|
* Respect the header HTTP_X_FORWARDED_PROTO when the host doesn't include a port number.
|
227
850
|
* Retry EAGAIN/EWOULDBLOCK during syswrite
|