pitchfork 0.18.3 → 0.19.0

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: 1c65128a941c7398384d6c3cf7e9351b79a1877d872bead7a9586334479f0862
4
- data.tar.gz: d7db35a780e04e2d9178958b0f3626db0790316b947c8b249796fc253bd21661
3
+ metadata.gz: 8dedbbeaa108f658fe9d990a823b36a3b9eec67755a6b7597b442ad2cf498ba0
4
+ data.tar.gz: a3041401ab5fae5a3ab2c355d670f49138ef640445154d3543aae2ba2543cc03
5
5
  SHA512:
6
- metadata.gz: b77a9bedb4a632ea0f3462a99b4b890f24d06e89fe14c6e501e39b6d52965027de778745a01b1f9a282be86b7af10d27abe5c23f95c5eeca035fbe43bae5e9d8
7
- data.tar.gz: 37aa9507774d6eda9e53ff68a050eecb939e3f9d45206fe40a5ce2ca8d47e521405d2a8cb21da8d83ebf42e39d4a845f4ea0d16426ebacbe8f97bf4714ac12f8
6
+ metadata.gz: 70443c44f2bdad96da75e79ed9d4bc272af92237374b8bcc29cb7791b29690c52ca799d0ca6739d2e200ce93beae16307aa9f98428d93e4945ffab70246d48e4
7
+ data.tar.gz: b286169b61679fb26bf168f041e19a6d294c4f26ad567eca96567ec0f425cd6c0eba0337870dbe6588f433bb03544f4b64ab339727aa271f0a944df32ad9ad64
@@ -0,0 +1,9 @@
1
+ {
2
+ "features": {
3
+ "ghcr.io/devcontainers/features/github-cli:1": {
4
+ "version": "1.1.3",
5
+ "resolved": "ghcr.io/devcontainers/features/github-cli@sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2",
6
+ "integrity": "sha256:bd7ab48a832228f633239277552c30b353867fef2e5b037e064b4e64f0b843f2"
7
+ }
8
+ }
9
+ }
@@ -9,7 +9,7 @@ workflows:
9
9
  '.github/workflows/release.yml':
10
10
  - 'actions/checkout@v6.1.0'
11
11
  - 'ruby/setup-ruby@v1.336.0'
12
- - 'rubygems/release-gem@v1.4.1'
12
+ - 'rubygems/release-gem@v1.4.2'
13
13
  dependencies:
14
14
  'actions/checkout@v4.4.0':
15
15
  ref: 'v4.4.0'
@@ -31,9 +31,9 @@ dependencies:
31
31
  commit: 'sha1-dc5a8d8553e6ee01fc26761a49e99e733d17954a'
32
32
  owner_id: 208761
33
33
  repo_id: 631633510
34
- 'rubygems/release-gem@v1.4.1':
35
- ref: 'v1.4.1'
36
- commit: 'sha1-7f9650160c1a4e7989fdc9855807bdbd421d8b6b'
34
+ 'rubygems/release-gem@v1.4.2':
35
+ ref: 'v1.4.2'
36
+ commit: 'sha1-5c53f5308233b7c0f47411f0471b3faae6fa57b2'
37
37
  owner_id: 208761
38
38
  repo_id: 731435765
39
39
  uses:
@@ -64,7 +64,9 @@ jobs:
64
64
  run: sudo apt-get install -y ragel socat netcat-openbsd
65
65
 
66
66
  - name: Tests Rack ${{ matrix.rack }} ${{ matrix.rubyopt }}
67
- run: bundle exec rake
67
+ run: bundle exec rake compile test
68
68
 
69
69
  - name: Ensure ragel output is up-to-date
70
- run: git diff --exit-code
70
+ run: |
71
+ bundle exec rake ragel
72
+ git diff --exit-code
@@ -26,4 +26,4 @@ jobs:
26
26
  with:
27
27
  bundler-cache: true
28
28
 
29
- - uses: rubygems/release-gem@v1.4.1
29
+ - uses: rubygems/release-gem@v1.4.2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.19.0
4
+
5
+ - Add `after_child_ready` hook.
6
+ - Fix the monitor using a full CPU core while it waits for workers during a graceful shutdown.
7
+ - Fix a second `QUIT` or `TERM` during a graceful shutdown making the monitor exit before pending or running workers.
8
+ - Fix `TTIN` during a graceful shutdown spawning new workers.
9
+ - Prevent `USR1` from restarting the monitor during a graceful shutdown.
10
+ - Honor shutdown signals while the server is starting.
11
+ - Fix `max_consecutive_spawn_errors` counting a timed out spawn twice.
12
+ - Preserve worker spawn deadlines when the mold starts workers.
13
+ - Fix the monitor raising `NoMethodError` when a mold exits before its `MoldReady` message is handled.
14
+ - Allow future versions to add optional trailing message fields during hot restarts.
15
+
16
+ # 0.18.4
17
+
18
+ - Avoid stale body source pointers when Ruby compacts strings.
19
+ - Fix non-ASCII request bytes on platforms where `char` is signed.
20
+
21
+ # 0.18.3
22
+
3
23
  - [GHSA-gc8c-7rmr-hp64](https://github.com/Shopify/pitchfork/security/advisories/GHSA-gc8c-7rmr-hp64) Prevent header confusion: reject `Content_Length` and `Transfer_Encoding`, and ignore other headers with underscores in their names.
4
24
  - [GHSA-pw9g-874p-x237](https://github.com/Shopify/pitchfork/security/advisories/GHSA-pw9g-874p-x237) Store request trailers separately in `pitchfork.request_trailers`.
5
25
  - [GHSA-mr52-m5rh-frmq](https://github.com/Shopify/pitchfork/security/advisories/GHSA-mr52-m5rh-frmq) Fix CRLF injection in response trailers.
@@ -398,6 +398,18 @@ issues caused by forking. If you detect something wrong, you can
398
398
  call `Process.exit`, and this mold won't be used, another one will be
399
399
  spawned later. e.g. you can check `Socket.getaddrinfo` still works, etc.
400
400
 
401
+
402
+ ### `after_child_ready`
403
+
404
+ Called by the monitor process when a worker, service or mold reports
405
+ ready. Outdated molds discarded by the monitor don't trigger it.
406
+
407
+ ```ruby
408
+ after_child_ready do |server, child|
409
+ server.logger.info("#{child.to_log} ready")
410
+ end
411
+ ```
412
+
401
413
  ### `after_worker_fork`
402
414
 
403
415
  ```ruby