puma 3.8.2 → 4.3.12
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 +305 -0
- data/LICENSE +0 -0
- data/README.md +162 -224
- data/bin/puma-wild +0 -0
- data/docs/architecture.md +37 -0
- data/{DEPLOYMENT.md → docs/deployment.md} +24 -4
- 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/nginx.md +0 -0
- data/docs/plugins.md +38 -0
- data/docs/restart.md +41 -0
- data/docs/signals.md +56 -3
- data/docs/systemd.md +130 -37
- data/docs/tcp_mode.md +96 -0
- data/ext/puma_http11/PumaHttp11Service.java +2 -0
- data/ext/puma_http11/ext_help.h +0 -0
- data/ext/puma_http11/extconf.rb +21 -0
- data/ext/puma_http11/http11_parser.c +134 -144
- data/ext/puma_http11/http11_parser.h +0 -0
- data/ext/puma_http11/http11_parser.java.rl +21 -37
- data/ext/puma_http11/http11_parser.rl +12 -10
- data/ext/puma_http11/http11_parser_common.rl +4 -4
- data/ext/puma_http11/io_buffer.c +0 -0
- data/ext/puma_http11/mini_ssl.c +165 -34
- data/ext/puma_http11/org/jruby/puma/Http11.java +106 -114
- data/ext/puma_http11/org/jruby/puma/Http11Parser.java +85 -101
- data/ext/puma_http11/org/jruby/puma/IOBuffer.java +72 -0
- data/ext/puma_http11/org/jruby/puma/MiniSSL.java +30 -6
- data/ext/puma_http11/puma_http11.c +3 -0
- data/lib/puma/accept_nonblock.rb +7 -1
- data/lib/puma/app/status.rb +42 -26
- data/lib/puma/binder.rb +57 -74
- data/lib/puma/cli.rb +26 -7
- data/lib/puma/client.rb +307 -191
- data/lib/puma/cluster.rb +78 -34
- data/lib/puma/commonlogger.rb +2 -0
- data/lib/puma/configuration.rb +24 -16
- data/lib/puma/const.rb +41 -20
- data/lib/puma/control_cli.rb +46 -19
- data/lib/puma/detect.rb +2 -0
- data/lib/puma/dsl.rb +329 -68
- data/lib/puma/events.rb +6 -2
- data/lib/puma/io_buffer.rb +3 -6
- data/lib/puma/jruby_restart.rb +2 -1
- data/lib/puma/launcher.rb +125 -61
- data/lib/puma/minissl/context_builder.rb +76 -0
- data/lib/puma/minissl.rb +85 -28
- data/lib/puma/null_io.rb +2 -0
- data/lib/puma/plugin/tmp_restart.rb +2 -1
- data/lib/puma/plugin.rb +7 -2
- data/lib/puma/rack/builder.rb +4 -1
- data/lib/puma/rack/urlmap.rb +2 -0
- data/lib/puma/rack_default.rb +2 -0
- data/lib/puma/reactor.rb +224 -34
- data/lib/puma/runner.rb +27 -6
- data/lib/puma/server.rb +212 -68
- data/lib/puma/single.rb +16 -5
- data/lib/puma/state_file.rb +2 -0
- data/lib/puma/tcp_logger.rb +2 -0
- data/lib/puma/thread_pool.rb +67 -36
- data/lib/puma/util.rb +2 -6
- data/lib/puma.rb +16 -0
- data/lib/rack/handler/puma.rb +16 -5
- data/tools/docker/Dockerfile +16 -0
- data/tools/jungle/README.md +12 -2
- data/tools/jungle/init.d/README.md +2 -0
- data/tools/jungle/init.d/puma +8 -8
- 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/jungle/upstart/README.md +0 -0
- data/tools/jungle/upstart/puma-manager.conf +0 -0
- data/tools/jungle/upstart/puma.conf +0 -0
- data/tools/trickletest.rb +1 -2
- metadata +32 -93
- 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/lib/puma/compat.rb +0 -14
- data/lib/puma/convenient.rb +0 -23
- data/lib/puma/daemon_ext.rb +0 -31
- data/lib/puma/delegation.rb +0 -11
- data/lib/puma/java_io_buffer.rb +0 -45
- data/lib/puma/rack/backports/uri/common_193.rb +0 -33
- data/puma.gemspec +0 -52
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 55de061927f854a6aa5886c0ef6573a6a95306afadf4eb156fbf3e59d54f3574
|
4
|
+
data.tar.gz: 9b58b994708cae549af93d92568f5111eb831404f9f189662ea73ff5c914ece3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5208ba5fc102a2d5df875490bf99afdf95aa2614a82503806aedf13dcf58c61cd62551aece57762bc6c54f5ae71a3517efb4b17d4d9eace27f99270ec1b9f6e
|
7
|
+
data.tar.gz: 5555c0290a7db01cdddfb19555caaa9b4d20085ef28297d436f3f37c2e5732d53f754d2ced9f76ffbc061c20e401ae68fd4819e630e12f17d335e6464dc42615
|
data/History.md
CHANGED
@@ -1,3 +1,299 @@
|
|
1
|
+
## 4.3.12 / 2022-03-30
|
2
|
+
|
3
|
+
* Security
|
4
|
+
* Close several HTTP Request Smuggling exploits (CVE-2022-24790)
|
5
|
+
|
6
|
+
## 4.3.11 / 2022-02-11
|
7
|
+
|
8
|
+
* Security
|
9
|
+
* Always close the response body (GHSA-rmj8-8hhh-gv5h)
|
10
|
+
|
11
|
+
## 4.3.10 / 2021-10-12
|
12
|
+
|
13
|
+
* Bugfixes
|
14
|
+
* Allow UTF-8 in HTTP header values
|
15
|
+
|
16
|
+
## 4.3.9 / 2021-10-12
|
17
|
+
|
18
|
+
* Security
|
19
|
+
* Do not allow LF as a line ending in a header (CVE-2021-41136)
|
20
|
+
|
21
|
+
## 4.3.8 / 2021-05-11
|
22
|
+
|
23
|
+
* Security
|
24
|
+
* Close keepalive connections after the maximum number of fast inlined requests (#2625)
|
25
|
+
|
26
|
+
## 4.3.7 / 2020-11-30
|
27
|
+
|
28
|
+
* Bugfixes
|
29
|
+
* Backport set CONTENT_LENGTH for chunked requests (Originally: #2287, backport: #2496)
|
30
|
+
|
31
|
+
## 4.3.6 / 2020-09-05
|
32
|
+
|
33
|
+
* Bugfixes
|
34
|
+
* Explicitly include ctype.h to fix compilation warning and build error on macOS with Xcode 12 (#2304)
|
35
|
+
* Don't require json at boot (#2269)
|
36
|
+
* Set `CONTENT_LENGTH` for chunked requests (#2287)
|
37
|
+
|
38
|
+
## 4.3.4/4.3.5 and 3.12.5/3.12.6 / 2020-05-22
|
39
|
+
|
40
|
+
Each patchlevel release contains a separate security fix. We recommend simply upgrading to 4.3.5/3.12.6.
|
41
|
+
|
42
|
+
## 4.3.3 and 3.12.4 / 2020-02-28
|
43
|
+
* Bugfixes
|
44
|
+
* Fix: Fixes a problem where we weren't splitting headers correctly on newlines (#2132)
|
45
|
+
* Security
|
46
|
+
* Fix: Prevent HTTP Response splitting via CR in early hints.
|
47
|
+
|
48
|
+
## 4.3.2 and 3.12.3 / 2020-02-27
|
49
|
+
|
50
|
+
* Security
|
51
|
+
* Fix: Prevent HTTP Response splitting via CR/LF in header values. CVE-2020-5247.
|
52
|
+
|
53
|
+
## 4.3.1 and 3.12.2 / 2019-12-05
|
54
|
+
|
55
|
+
* Security
|
56
|
+
* Fix: a poorly-behaved client could use keepalive requests to monopolize Puma's reactor and create a denial of service attack. CVE-2019-16770.
|
57
|
+
|
58
|
+
## 4.3.0 / 2019-11-07
|
59
|
+
|
60
|
+
* Features
|
61
|
+
* Strip whitespace at end of HTTP headers (#2010)
|
62
|
+
* Optimize HTTP parser for JRuby (#2012)
|
63
|
+
* Add SSL support for the control app and cli (#2046, #2052)
|
64
|
+
|
65
|
+
* Bugfixes
|
66
|
+
* Fix Errno::EINVAL when SSL is enabled and browser rejects cert (#1564)
|
67
|
+
* Fix pumactl defaulting puma to development if an environment was not specified (#2035)
|
68
|
+
* Fix closing file stream when reading pid from pidfile (#2048)
|
69
|
+
* Fix a typo in configuration option `--extra_runtime_dependencies` (#2050)
|
70
|
+
|
71
|
+
## 4.2.1 / 2019-10-07
|
72
|
+
|
73
|
+
* 3 bugfixes
|
74
|
+
* Fix socket activation of systemd (pre-existing) unix binder files (#1842, #1988)
|
75
|
+
* Deal with multiple calls to bind correctly (#1986, #1994, #2006)
|
76
|
+
* Accepts symbols for `verify_mode` (#1222)
|
77
|
+
|
78
|
+
## 4.2.0 / 2019-09-23
|
79
|
+
|
80
|
+
* 6 features
|
81
|
+
* Pumactl has a new -e environment option and reads `config/puma/<environment>.rb` config files (#1885)
|
82
|
+
* Semicolons are now allowed in URL paths (MRI only), useful for Angular or Redmine (#1934)
|
83
|
+
* Allow extra dependencies to be defined when using prune_bundler (#1105)
|
84
|
+
* Puma now reports the correct port when binding to port 0, also reports other listeners when binding to localhost (#1786)
|
85
|
+
* Sending SIGINFO to any Puma worker now prints currently active threads and their backtraces (#1320)
|
86
|
+
* Puma threads all now have their name set on Ruby 2.3+ (#1968)
|
87
|
+
* 4 bugfixes
|
88
|
+
* Fix some misbehavior with phased restart and externally SIGTERMed workers (#1908, #1952)
|
89
|
+
* Fix socket closing on error (#1941)
|
90
|
+
* Removed unnecessary SIGINT trap for JRuby that caused some race conditions (#1961)
|
91
|
+
* Fix socket files being left around after process stopped (#1970)
|
92
|
+
* Absolutely thousands of lines of test improvements and fixes thanks to @MSP-Greg
|
93
|
+
|
94
|
+
## 4.1.1 / 2019-09-05
|
95
|
+
|
96
|
+
* 3 bugfixes
|
97
|
+
* Revert our attempt to not dup STDOUT/STDERR (#1946)
|
98
|
+
* Fix socket close on error (#1941)
|
99
|
+
* Fix workers not shutting down correctly (#1908)
|
100
|
+
|
101
|
+
## 4.1.0 / 2019-08-08
|
102
|
+
|
103
|
+
* 4 features
|
104
|
+
* Add REQUEST_PATH on parse error message (#1831)
|
105
|
+
* You can now easily add custom log formatters with the `log_formatter` config option (#1816)
|
106
|
+
* Puma.stats now provides process start times (#1844)
|
107
|
+
* Add support for disabling TLSv1.1 (#1836)
|
108
|
+
|
109
|
+
* 7 bugfixes
|
110
|
+
* Fix issue where Puma was creating zombie process entries (#1887)
|
111
|
+
* Fix bugs with line-endings and chunked encoding (#1812)
|
112
|
+
* RACK_URL_SCHEME is now set correctly in all conditions (#1491)
|
113
|
+
* We no longer mutate global STDOUT/STDERR, particularly the sync setting (#1837)
|
114
|
+
* SSL read_nonblock no longer blocks (#1857)
|
115
|
+
* Swallow connection errors when sending early hints (#1822)
|
116
|
+
* Backtrace no longer dumped when invalid pumactl commands are run (#1863)
|
117
|
+
|
118
|
+
* 5 other
|
119
|
+
* Avoid casting worker_timeout twice (#1838)
|
120
|
+
* Removed a call to private that wasn't doing anything (#1882)
|
121
|
+
* README, Rakefile, docs and test cleanups (#1848, #1847, #1846, #1853, #1859, #1850, #1866, #1870, #1872, #1833, #1888)
|
122
|
+
* Puma.io has proper documentation now (https://puma.io/puma/)
|
123
|
+
* Added the Contributor Covenant CoC
|
124
|
+
|
125
|
+
* 1 known issue
|
126
|
+
* Some users are still experiencing issues surrounding socket activation and Unix sockets (#1842)
|
127
|
+
|
128
|
+
## 4.0.1 / 2019-07-11
|
129
|
+
|
130
|
+
* 2 bugfixes
|
131
|
+
* Fix socket removed after reload - should fix problems with systemd socket activation. (#1829)
|
132
|
+
* Add extconf tests for DTLS_method & TLS_server_method, use in minissl.rb. Should fix "undefined symbol: DTLS_method" when compiling against old OpenSSL versions. (#1832)
|
133
|
+
* 1 other
|
134
|
+
* Removed unnecessary RUBY_VERSION checks. (#1827)
|
135
|
+
|
136
|
+
## 4.0.0 / 2019-06-25
|
137
|
+
|
138
|
+
* 9 features
|
139
|
+
* Add support for disabling TLSv1.0 (#1562)
|
140
|
+
* Request body read time metric (#1569)
|
141
|
+
* Add out_of_band hook (#1648)
|
142
|
+
* Re-implement (native) IOBuffer for JRuby (#1691)
|
143
|
+
* Min worker timeout (#1716)
|
144
|
+
* Add option to suppress SignalException on SIGTERM (#1690)
|
145
|
+
* Allow mutual TLS CA to be set using `ssl_bind` DSL (#1689)
|
146
|
+
* Reactor now uses nio4r instead of `select` (#1728)
|
147
|
+
* Add status to pumactl with pidfile (#1824)
|
148
|
+
|
149
|
+
* 10 bugfixes
|
150
|
+
* Do not accept new requests on shutdown (#1685, #1808)
|
151
|
+
* Fix 3 corner cases when request body is chunked (#1508)
|
152
|
+
* Change pid existence check's condition branches (#1650)
|
153
|
+
* Don't call .stop on a server that doesn't exist (#1655)
|
154
|
+
* Implemented NID_X9_62_prime256v1 (P-256) curve over P-521 (#1671)
|
155
|
+
* Fix @notify.close can't modify frozen IOError (RuntimeError) (#1583)
|
156
|
+
* Fix Java 8 support (#1773)
|
157
|
+
* Fix error `uninitialized constant Puma::Cluster` (#1731)
|
158
|
+
* Fix `not_token` being able to be set to true (#1803)
|
159
|
+
* Fix "Hang on SIGTERM with ruby 2.6 in clustered mode" ([PR #1741], [#1674], [#1720], [#1730], [#1755])
|
160
|
+
|
161
|
+
[PR #1741]: https://github.com/puma/puma/pull/1741
|
162
|
+
[#1674]: https://github.com/puma/puma/issues/1674
|
163
|
+
[#1720]: https://github.com/puma/puma/issues/1720
|
164
|
+
[#1730]: https://github.com/puma/puma/issues/1730
|
165
|
+
[#1755]: https://github.com/puma/puma/issues/1755
|
166
|
+
|
167
|
+
## 3.12.1 / 2019-03-19
|
168
|
+
|
169
|
+
* 1 features
|
170
|
+
* Internal strings are frozen (#1649)
|
171
|
+
* 3 bugfixes
|
172
|
+
* Fix chunked ending check (#1607)
|
173
|
+
* Rack handler should use provided default host (#1700)
|
174
|
+
* Better support for detecting runtimes that support `fork` (#1630)
|
175
|
+
|
176
|
+
## 3.12.0 / 2018-07-13
|
177
|
+
|
178
|
+
* 5 features:
|
179
|
+
* You can now specify which SSL ciphers the server should support, default is unchanged (#1478)
|
180
|
+
* The setting for Puma's `max_threads` is now in `Puma.stats` (#1604)
|
181
|
+
* Pool capacity is now in `Puma.stats` (#1579)
|
182
|
+
* Installs restricted to Ruby 2.2+ (#1506)
|
183
|
+
* `--control` is now deprecated in favor of `--control-url` (#1487)
|
184
|
+
|
185
|
+
* 2 bugfixes:
|
186
|
+
* Workers will no longer accept more web requests than they have capacity to process. This prevents an issue where one worker would accept lots of requests while starving other workers (#1563)
|
187
|
+
* In a test env puma now emits the stack on an exception (#1557)
|
188
|
+
|
189
|
+
## 3.11.4 / 2018-04-12
|
190
|
+
|
191
|
+
* 2 features:
|
192
|
+
* Manage puma as a service using rc.d (#1529)
|
193
|
+
* Server stats are now available from a top level method (#1532)
|
194
|
+
* 5 bugfixes:
|
195
|
+
* Fix parsing CLI options (#1482)
|
196
|
+
* Order of stderr and stdout is made before redirecting to a log file (#1511)
|
197
|
+
* Init.d fix of `ps -p` to check if pid exists (#1545)
|
198
|
+
* Early hints bugfix (#1550)
|
199
|
+
* Purge interrupt queue when closing socket fails (#1553)
|
200
|
+
|
201
|
+
## 3.11.3 / 2018-03-05
|
202
|
+
|
203
|
+
* 3 bugfixes:
|
204
|
+
* Add closed? to MiniSSL::Socket for use in reactor (#1510)
|
205
|
+
* Handle EOFError at the toplevel of the server threads (#1524) (#1507)
|
206
|
+
* Deal with zero sized bodies when using SSL (#1483)
|
207
|
+
|
208
|
+
## 3.11.2 / 2018-01-19
|
209
|
+
|
210
|
+
* 1 bugfix:
|
211
|
+
* Deal with read\_nonblock returning nil early
|
212
|
+
|
213
|
+
## 3.11.1 / 2018-01-18
|
214
|
+
|
215
|
+
* 1 bugfix:
|
216
|
+
* Handle read\_nonblock returning nil when the socket close (#1502)
|
217
|
+
|
218
|
+
## 3.11.0 / 2017-11-20
|
219
|
+
|
220
|
+
* 2 features:
|
221
|
+
* HTTP 103 Early Hints (#1403)
|
222
|
+
* 421/451 status codes now have correct status messages attached (#1435)
|
223
|
+
|
224
|
+
* 9 bugfixes:
|
225
|
+
* Environment config files (/config/puma/<ENV>.rb) load correctly (#1340)
|
226
|
+
* Specify windows dependencies correctly (#1434, #1436)
|
227
|
+
* puma/events required in test helper (#1418)
|
228
|
+
* Correct control CLI's option help text (#1416)
|
229
|
+
* Remove a warning for unused variable in mini_ssl (#1409)
|
230
|
+
* Correct pumactl docs argument ordering (#1427)
|
231
|
+
* Fix an uninitialized variable warning in server.rb (#1430)
|
232
|
+
* Fix docs typo/error in Launcher init (#1429)
|
233
|
+
* Deal with leading spaces in RUBYOPT (#1455)
|
234
|
+
|
235
|
+
* 2 other:
|
236
|
+
* Add docs about internals (#1425, #1452)
|
237
|
+
* Tons of test fixes from @MSP-Greg (#1439, #1442, #1464)
|
238
|
+
|
239
|
+
## 3.10.0 / 2017-08-17
|
240
|
+
|
241
|
+
* 3 features:
|
242
|
+
* The status server has a new /gc and /gc-status command. (#1384)
|
243
|
+
* The persistent and first data timeouts are now configurable (#1111)
|
244
|
+
* Implemented RFC 2324 (#1392)
|
245
|
+
|
246
|
+
* 12 bugfixes:
|
247
|
+
* Not really a Puma bug, but @NickolasVashchenko created a gem to workaround a Ruby bug that some users of Puma may be experiencing. See README for more. (#1347)
|
248
|
+
* Fix hangups with SSL and persistent connections. (#1334)
|
249
|
+
* Fix Rails double-binding to a port (#1383)
|
250
|
+
* Fix incorrect thread names (#1368)
|
251
|
+
* Fix issues with /etc/hosts and JRuby where localhost addresses were not correct. (#1318)
|
252
|
+
* Fix compatibility with RUBYOPT="--enable-frozen-string-literal" (#1376)
|
253
|
+
* Fixed some compiler warnings (#1388)
|
254
|
+
* We actually run the integration tests in CI now (#1390)
|
255
|
+
* No longer shipping unnecessary directories in the gemfile (#1391)
|
256
|
+
* If RUBYOPT is nil, we no longer blow up on restart. (#1385)
|
257
|
+
* Correct response to SIGINT (#1377)
|
258
|
+
* Proper exit code returned when we receive a TERM signal (#1337)
|
259
|
+
|
260
|
+
* 3 refactors:
|
261
|
+
* Various test improvements from @grosser
|
262
|
+
* Rubocop (#1325)
|
263
|
+
* Hoe has been removed (#1395)
|
264
|
+
|
265
|
+
* 1 known issue:
|
266
|
+
* Socket activation doesn't work in JRuby. Their fault, not ours. (#1367)
|
267
|
+
|
268
|
+
## 3.9.1 / 2017-06-03
|
269
|
+
|
270
|
+
* 2 bugfixes:
|
271
|
+
* Fixed compatibility with older Bundler versions (#1314)
|
272
|
+
* Some internal test/development cleanup (#1311, #1313)
|
273
|
+
|
274
|
+
## 3.9.0 / 2017-06-01
|
275
|
+
|
276
|
+
* 2 features:
|
277
|
+
* The ENV is now reset to its original values when Puma restarts via USR1/USR2 (#1260) (MRI only, no JRuby support)
|
278
|
+
* Puma will no longer accept more clients than the maximum number of threads. (#1278)
|
279
|
+
|
280
|
+
* 9 bugfixes:
|
281
|
+
* Reduce information leakage by preventing HTTP parse errors from writing environment hashes to STDERR (#1306)
|
282
|
+
* Fix SSL/WebSocket compatibility (#1274)
|
283
|
+
* HTTP headers with empty values are no longer omitted from responses. (#1261)
|
284
|
+
* Fix a Rack env key which was set to nil. (#1259)
|
285
|
+
* peercert has been implemented for JRuby (#1248)
|
286
|
+
* Fix port settings when using rails s (#1277, #1290)
|
287
|
+
* Fix compat w/LibreSSL (#1285)
|
288
|
+
* Fix restarting Puma w/symlinks and a new Gemfile (#1282)
|
289
|
+
* Replace Dir.exists? with Dir.exist? (#1294)
|
290
|
+
|
291
|
+
* 1 known issue:
|
292
|
+
* A bug in MRI 2.2+ can result in IOError: stream closed. See #1206. This issue has existed since at least Puma 3.6, and probably further back.
|
293
|
+
|
294
|
+
* 1 refactor:
|
295
|
+
* Lots of test fixups from @grosser.
|
296
|
+
|
1
297
|
## 3.8.2 / 2017-03-14
|
2
298
|
|
3
299
|
* 1 bugfix:
|
@@ -1274,3 +1570,12 @@ be added back in a future date when a java Puma::MiniSSL is added.
|
|
1274
1570
|
## 1.0.0 / 2012-03-29
|
1275
1571
|
|
1276
1572
|
* Released!
|
1573
|
+
|
1574
|
+
## Ignore - this is for maintainers to copy-paste during release
|
1575
|
+
## Master
|
1576
|
+
|
1577
|
+
* Features
|
1578
|
+
* Your feature goes here (#Github Number)
|
1579
|
+
|
1580
|
+
* Bugfixes
|
1581
|
+
* Your bugfix goes here (#Github Number)
|
data/LICENSE
CHANGED
File without changes
|