From 007bb3d73feacd30c8595025288f8a9e53ca5157 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 13 Feb 2010 00:53:34 -0800 Subject: gemspec: bump dependency on Unicorn to avoid leak The HTTP parser in Unicorn <= 0.96.0 did not use the Ruby API correctly. While this bug did not affect Unicorn itself, Rainbows! allocates a new Unicorn::HttpParser object for every client connection and Unicorn did not properly setup the parser object to be freed. --- rainbows.gemspec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rainbows.gemspec') diff --git a/rainbows.gemspec b/rainbows.gemspec index 3c9f1b8..fc6be20 100644 --- a/rainbows.gemspec +++ b/rainbows.gemspec @@ -41,7 +41,9 @@ Gem::Specification.new do |s| s.test_files = test_files # we need Unicorn for the HTTP parser and process management - s.add_dependency(%q, ["~> 0.95.0", "< 0.97.0"]) + # The HTTP parser in Unicorn < 0.96.1 did not use the Ruby + # API correctly and resulted in a memory leak + s.add_dependency(%q, ["~> 0.96.1", "< 0.97.0"]) # Unicorn already depends on Rack # s.add_dependency(%q) -- cgit v1.2.3-24-ge0c7