Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Fix a regression introduced in `0.17.0` causing `before_worker_exit` to often not be called.
- Implemented the `max_consecutive_spawn_errors` configuration. Purely opt-in for now.
- Properly handle magic comments in `config.ru`.
- Execute `rack.response_finished` callbacks in reverse order of registration

# 0.17.0

Expand Down
2 changes: 1 addition & 1 deletion lib/pitchfork/http_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def process_client(client, worker, timeout_handler)
env
ensure
if env
env["rack.response_finished"].each do |callback|
env["rack.response_finished"].reverse_each do |callback|
if callback.arity == 0
callback.call
else
Expand Down
Loading