raptor 0.20.1 → 0.20.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5a9aa19c5b29e7935a63f703d240ae6a132f4c7cc698481b02b9d66f1f65432
4
- data.tar.gz: e443530d17e9c217982a425f5059c033ddd4eafa260f4ec60a1144bc99c0db4c
3
+ metadata.gz: c7d7d507ad52990de191f14ad645065b414e4d9b5f5d55f610626a0a1b3e6484
4
+ data.tar.gz: 7d06c53f9fc1e3531cc804dafccf28a715c1cb47924a69a19bd84e449164f935
5
5
  SHA512:
6
- metadata.gz: fcd061377838787f57e3555ba5997679ccf321ed2b8415a3eef7f9d15ccc2b221eb0335f16da285fe33054c430741b2b913663c26f6fad621ab3008e721257b1
7
- data.tar.gz: 05b46a702067778709f0fb720ad908356650bbfc340cdde8809e49f536ed57dc7d2091bb96a07cda91af56a7a2daf634798e92af9a592d44002c1e84a18ad730
6
+ metadata.gz: 4759064e2e344d4d3f4669e62d04056df8d78bbc6b7fe8ba85881e6a8babb136d1f5ca5855606014e06fa43ac18d3d2946121b59bb98be1e8499f8024b4bb3bf
7
+ data.tar.gz: 439b5f3fce057ce5f2fe8ae8f1d7d47931a688e4ab7ac2f9a59ab9917c4939fb3b5b42e3898d216bb734f0122d4de1e4c9b029f7c71339bffa16e036a4a61838
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.20.2] - 2026-09-26
4
+
5
+ - Close idle connections before reforking workers
6
+
3
7
  ## [0.20.1] - 2026-09-26
4
8
 
5
9
  - Pass worker lifecycle settings through the Rackup handler
data/README.md CHANGED
@@ -37,7 +37,7 @@ run proc { |_env| [200, { "content-type" => "text/plain" }, ["Hello, World!"]] }
37
37
  ```
38
38
  > bundle exec raptor -w 10 -t 3 hello_world.ru
39
39
  [Raptor 72876|Main|Main] Cluster initializing:
40
- [Raptor 72876|Main|Main] ├─ Version: 0.20.1
40
+ [Raptor 72876|Main|Main] ├─ Version: 0.20.2
41
41
  [Raptor 72876|Main|Main] ├─ Ruby Version: ruby 4.0.6 (2026-07-14 revision 03b6d3f889) +YJIT +PRISM [arm64-darwin23]
42
42
  [Raptor 72876|Main|Main] ├─ Environment: development
43
43
  [Raptor 72876|Main|Main] ├─ Master PID: 72876
@@ -231,7 +231,7 @@ unbounded configured limit. The control server is read-only and currently expose
231
231
 
232
232
  ## (Micro) Benchmarks
233
233
 
234
- Raptor 0.20.1 vs Puma 8.0.2 vs Falcon 0.57.0 across two workload profiles. **IO-bound** is a GET endpoint that
234
+ Raptor 0.20.2 vs Puma 8.0.2 vs Falcon 0.57.0 across two workload profiles. **IO-bound** is a GET endpoint that
235
235
  interleaves 5-10 short sleeps (total 2.5-15ms) with small CPU work, simulating a read path that makes several DB or
236
236
  cache calls. **CPU-bound** is a POST endpoint that accepts a small JSON body, interleaves 3-5 chunks of JSON item
237
237
  building (total 450-1500 items) with sub-100µs sleeps, and returns the built array, simulating a write path that does
@@ -145,6 +145,13 @@ module Raptor
145
145
  end
146
146
  end
147
147
 
148
+ @id_to_socket.each_value { |socket| socket.close rescue nil }
149
+ @id_to_socket.clear
150
+ @socket_to_state.clear
151
+ @id_to_timeout.clear
152
+ @id_to_writer.clear
153
+ @id_to_flow_control.clear
154
+ @timeouts.clear!
148
155
  @selector.close
149
156
  end
150
157
  end
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Raptor
5
- VERSION = "0.20.1"
5
+ VERSION = "0.20.2"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young