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 +4 -4
- data/.devcontainer/devcontainer-lock.json +9 -0
- data/.github/workflows/actions.lock +4 -4
- data/.github/workflows/ci.yml +4 -2
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +20 -0
- data/docs/CONFIGURATION.md +12 -0
- data/ext/pitchfork_http/pitchfork_http.c +1111 -1114
- data/ext/pitchfork_http/pitchfork_http.rl +5 -6
- data/lib/pitchfork/children.rb +4 -2
- data/lib/pitchfork/configurator.rb +5 -0
- data/lib/pitchfork/http_server.rb +54 -33
- data/lib/pitchfork/message.rb +22 -1
- data/lib/pitchfork/version.rb +1 -1
- data/lib/pitchfork/worker.rb +16 -15
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dedbbeaa108f658fe9d990a823b36a3b9eec67755a6b7597b442ad2cf498ba0
|
|
4
|
+
data.tar.gz: a3041401ab5fae5a3ab2c355d670f49138ef640445154d3543aae2ba2543cc03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
35
|
-
ref: 'v1.4.
|
|
36
|
-
commit: 'sha1-
|
|
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:
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -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:
|
|
70
|
+
run: |
|
|
71
|
+
bundle exec rake ragel
|
|
72
|
+
git diff --exit-code
|
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.
|
data/docs/CONFIGURATION.md
CHANGED
|
@@ -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
|