From 3ed7dfc218475c9b6b95f62e0eba6975ecd52e45 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 17 Mar 2021 02:15:10 -0400 Subject: unicorn 6.0.0 - no more recycling Rack env 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 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/ --- GIT-VERSION-GEN | 2 +- unicorn.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index 7ec5b4f..49b8c99 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -DEF_VER = "v6.0.0.GIT" +DEF_VER = "v6.0.0" CONSTANT = "Unicorn::Const::UNICORN_VERSION" RVF = "lib/unicorn/version.rb" GVF = "GIT-VERSION-FILE" diff --git a/unicorn.gemspec b/unicorn.gemspec index 304aca6..90e64d4 100644 --- a/unicorn.gemspec +++ b/unicorn.gemspec @@ -11,7 +11,7 @@ end.compact Gem::Specification.new do |s| s.name = %q{unicorn} - s.version = (ENV['VERSION'] || '6.0.0.GIT').dup + s.version = (ENV['VERSION'] || '6.0.0').dup s.authors = ['unicorn hackers'] s.summary = 'Rack HTTP server for fast clients and Unix' s.description = File.read('README').split("\n\n")[1] -- cgit v1.2.3-24-ge0c7