Files | Admin

Notes:

Release Name: 4.6.1

Notes:
unicorn 4.6.1 - minor cleanups

Unicorn is an HTTP server for Rack applications designed to only serve
fast clients on low-latency, high-bandwidth connections and take
advantage of features in Unix/Unix-like kernels.  Slow clients should
only be served by placing a reverse proxy capable of fully buffering
both the the request and response in between Unicorn and slow clients.

* http://unicorn.bogomips.org/
* mongrel-unicorn@rubyforge.org
* git://bogomips.org/unicorn.git
* http://unicorn.bogomips.org/NEWS.atom.xml

Changes:

Unicorn::Const::UNICORN_VERSION is now auto-generated from
GIT-VERSION-GEN and always correct.  Minor cleanups for
hijacking.



Changes: .gitignore | 1 + Documentation/unicorn.1.txt | 12 +++++--- GIT-VERSION-GEN | 69 ++++++++++++++++++++++---------------------- GNUmakefile | 2 +- lib/unicorn/const.rb | 4 +-- lib/unicorn/http_request.rb | 5 +--- t/bin/utee | 12 -------- t/t0000-http-basic.sh | 2 +- t/t0004-heartbeat-timeout.sh | 6 ++-- t/t0006-reopen-logs.sh | 8 ++--- t/t0019-max_header_len.sh | 2 +- t/t0100-rack-input-tests.sh | 20 ++++++------- t/t9000-preread-input.sh | 4 +-- t/test-lib.sh | 17 ++++++++++- 14 files changed, 83 insertions(+), 81 deletions(-) commit f8829e69e28bb93dbbf9a220cdff163a6ba182d5 Author: Eric Wong Date: Thu Feb 21 08:36:35 2013 +0000 unicorn 4.6.1 - minor cleanups Unicorn::Const::UNICORN_VERSION is now auto-generated from GIT-VERSION-GEN and always correct. Minor cleanups for hijacking. commit 15c23106ffc9b7a03fdc2353f41c239f89ac9822 Author: Eric Wong Date: Sat Feb 9 01:13:17 2013 +0000 http_request: drop conditional assignment for hijack As far as I can tell, this was never necessary. commit ed28a361d234847dca550e839f22f0cc779f6ce0 Author: Eric Wong Date: Fri Feb 8 22:48:03 2013 +0000 http_request: remove FIXME for rack.version clarification commit a9474624a148fe58e0944664190b259787dcf51e in rack.git commit cb0623f25db7f06660e563e8e746bfe0ae5ba9c5 Author: Eric Wong Date: Fri Feb 8 18:50:07 2013 +0000 auto-generate Unicorn::Const::UNICORN_VERSION This DRYs out our code and prevents snafus like the 4.6.0 release where UNICORN_VERSION stayed at 4.5.0 Reported-by: Maurizio De Santis commit 1b3352ec9b5c9eeb58cf330d6b9ce8753af4ec16 Author: Eric Wong Date: Wed Feb 6 11:20:57 2013 +0000 unicorn 4.6.0 - hijacking support This pre-release adds hijacking support for Rack 1.5 users. See Rack documentation for more information about hijacking. There is also a new --no-default-middleware/-N option for the `unicorn' command to ignore RACK_ENV within unicorn thanks to Lin Jen-Shin. There are only documentation and test-portability updates since 4.6.0pre1, no code changes. commit 9cd8554749a9f120b010c93933d09d2dd27b1280 Author: Eric Wong Date: Mon Feb 4 12:39:09 2013 +0000 tests: "wc -l" portability for *BSDs On FreeBSD 9.0, "wc -l" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it. commit 2a2163594ea2b515e98fbe9f909bcf90e4c35fe8 Author: Eric Wong Date: Mon Feb 4 12:29:00 2013 +0000 tests: "wc -c" portability for *BSDs On FreeBSD 9.0, "wc -c" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it. This is commit 8a6117a22a7d01eeb5adc63d3152acf435cd3176 in rainbows.git commit 85223902e8229bd460ce0b4ad126f42b1db42a46 Author: Eric Wong Date: Mon Feb 4 10:36:18 2013 +0000 tests: replace non-portable "date +%s" with ruby equivalent "date +%s" is not in POSIX (it is in GNU, and at least FreeBSD 9.0, possibly earlier). The Ruby equivalent should be sufficiently portable between different Ruby versions. This change was automated via: perl -i -p -e 's/date \+%s/unix_time/' t/*.sh This is commit 0ba6fc3c30b9cf530faf7fcf5ce7be519ec13fe7 in rainbows.git commit a09a622b4988b5eee819487c96a4563e71f753f7 Author: Eric Wong Date: Mon Feb 4 10:30:25 2013 +0000 tests: remove utee POSIX already stipulates tee(1) must be unbuffered. I think my decision to use utee was due to my being misled by a bug in older curl where -N did not work as advertised (but --no-buffer did). N.B. we don't use tee in unicorn tests, this just matches commit cbff7b0892148b037581541184364e0e91d2a138 in rainbows commit 64765b95df06256d39daefdeebde97c874770131 Author: Eric Wong Date: Tue Jan 29 21:19:22 2013 +0000 manpage: update middleware-related documentation -N/--no-default-middleware needs a corresponding manpage entry. Additionally, the Rack::Chunked/ContentLength middleware comment is out-of-date as of unicorn v4.1.0