diff options
author | Eric Wong <bofh@yhbt.net> | 2021-03-17 02:15:10 -0400 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2021-03-17 02:15:10 -0400 |
commit | 3ed7dfc218475c9b6b95f62e0eba6975ecd52e45 (patch) | |
tree | 7402f8387a6b02236e30c898b6802992b3c7f361 /setup.rb | |
parent | 9c4963c8b1f96fa6afcfa8ec61f81f9997e926e7 (diff) | |
download | unicorn-3ed7dfc218475c9b6b95f62e0eba6975ecd52e45.tar.gz |
This release allocates a new Rack `env' hash for every request. This is done for safety with internally-(thread|event)-using Rack apps which expect to use `env' after the normal Rack response is complete, but without relying on rack.hijack[1]. Thanks to Dirkjan Bussink <d.bussink@gmail.com> for the patch: https://yhbt.net/unicorn-public/66A68DD8-83EF-4C7A-80E8-3F1F7AB31670@github.com/ The major version is bumped since: 1) there are performance regressions for some simple Rack apps 2) unsupported 3rd-party monkey patches which previously relied on this behavior may be broken (our version of OobGC was). The test suite is also more reliable on multi-core systems and Ruby 3.x. [1] thread from 2017 around rack.hijack safety: https://yhbt.net/unicorn-public/CAAtdryPG3nLuyo0jxfYW1YHu1Q+ZpkLkd4KdWC8vA46B5haZxw@mail.gmail.com/
Diffstat (limited to 'setup.rb')
0 files changed, 0 insertions, 0 deletions