puma 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +10 -0
- data/lib/puma/configuration.rb +3 -1
- data/lib/puma/const.rb +1 -1
- data/lib/puma/server.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7a5fc93f89e02a2687f0266b0b9d4bd022ab373468b38fd93ab8c9d93fd3e60
|
4
|
+
data.tar.gz: 27d1faa8805df15e6f0cecea9469c21f99ac3ab971f817062b6f7f4a3f098160
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df56ab248fda787f6f5a5d68d25a0888cf79aafc2a76302e48d35c684ac8d461519d728016fb7244a993969c08879d22819b73b96a92abef046119e0cbfae82e
|
7
|
+
data.tar.gz: a4aab29ff5d6b87f2c099800fad9a963c785777d9fc8e0f3df33ca51ae04835dfb27f282512294c48dd51e2c34f9b6083fc7e1dd2b42a5e8a99b625c6688b5ab
|
data/History.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 7.0.3 / 2025-09-13
|
2
|
+
|
3
|
+
* Performance
|
4
|
+
* server.rb - process_client - add ka to todo if readable & complete ([#3748])
|
5
|
+
|
6
|
+
* Bugfixes
|
7
|
+
* Convert PUMA_PERSISTENT_TIMEOUT to an Integer ([#3749])
|
8
|
+
|
1
9
|
## 7.0.2 / 2025-09-08
|
2
10
|
|
3
11
|
* Bugfixes
|
@@ -2226,6 +2234,8 @@ be added back in a future date when a java Puma::MiniSSL is added.
|
|
2226
2234
|
* Bugfixes
|
2227
2235
|
* Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
|
2228
2236
|
|
2237
|
+
[#3748]:https://github.com/puma/puma/pull/3748 "PR by @MSP-Greg, merged 2025-09-14"
|
2238
|
+
[#3749]:https://github.com/puma/puma/pull/3749 "PR by @schneems, merged 2025-09-14"
|
2229
2239
|
[#3736]:https://github.com/puma/puma/pull/3736 "PR by @MSP-Greg, merged 2025-09-08"
|
2230
2240
|
[#3734]:https://github.com/puma/puma/issues/3734 "Issue by @espen, closed 2025-09-08"
|
2231
2241
|
[#3729]:https://github.com/puma/puma/pull/3729 "PR by @bensheldon, merged 2025-09-08"
|
data/lib/puma/configuration.rb
CHANGED
@@ -154,7 +154,7 @@ module Puma
|
|
154
154
|
mutate_stdout_and_stderr_to_sync_on_write: true,
|
155
155
|
out_of_band: [],
|
156
156
|
# Number of seconds for another request within a persistent session.
|
157
|
-
persistent_timeout:
|
157
|
+
persistent_timeout: 65, # PUMA_PERSISTENT_TIMEOUT
|
158
158
|
queue_requests: true,
|
159
159
|
rackup: 'config.ru'.freeze,
|
160
160
|
raise_exception_on_sigterm: true,
|
@@ -236,6 +236,7 @@ module Puma
|
|
236
236
|
def puma_options_from_env(env = ENV)
|
237
237
|
min = env['PUMA_MIN_THREADS'] || env['MIN_THREADS']
|
238
238
|
max = env['PUMA_MAX_THREADS'] || env['MAX_THREADS']
|
239
|
+
persistent_timeout = env['PUMA_PERSISTENT_TIMEOUT']
|
239
240
|
workers = if env['WEB_CONCURRENCY'] == 'auto'
|
240
241
|
require_processor_counter
|
241
242
|
::Concurrent.available_processor_count
|
@@ -246,6 +247,7 @@ module Puma
|
|
246
247
|
{
|
247
248
|
min_threads: min && min != "" && Integer(min),
|
248
249
|
max_threads: max && max != "" && Integer(max),
|
250
|
+
persistent_timeout: persistent_timeout && persistent_timeout != "" && Integer(persistent_timeout),
|
249
251
|
workers: workers && workers != "" && Integer(workers),
|
250
252
|
environment: env['APP_ENV'] || env['RACK_ENV'] || env['RAILS_ENV'],
|
251
253
|
}
|
data/lib/puma/const.rb
CHANGED
@@ -100,7 +100,7 @@ module Puma
|
|
100
100
|
# too taxing on performance.
|
101
101
|
module Const
|
102
102
|
|
103
|
-
PUMA_VERSION = VERSION = "7.0.
|
103
|
+
PUMA_VERSION = VERSION = "7.0.3"
|
104
104
|
CODE_NAME = "Romantic Warrior"
|
105
105
|
|
106
106
|
PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
|
data/lib/puma/server.rb
CHANGED
@@ -508,7 +508,7 @@ module Puma
|
|
508
508
|
next_request_ready = if client.has_back_to_back_requests?
|
509
509
|
with_force_shutdown(client) { client.process_back_to_back_requests }
|
510
510
|
else
|
511
|
-
|
511
|
+
with_force_shutdown(client) { client.eagerly_finish }
|
512
512
|
end
|
513
513
|
|
514
514
|
if next_request_ready
|