diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-05 23:05:05 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-05 23:05:05 -0800 |
commit | b7a0074284d33352bb9e732c660b29162f34bf0e (patch) | |
tree | 664d6b3f1f732b597c41f1b48a5f478ce197de71 /lib/unicorn | |
parent | 7f3ebe9213e09932cd0e8a2a82bfe2dd5430a824 (diff) | |
download | unicorn-b7a0074284d33352bb9e732c660b29162f34bf0e.tar.gz |
Response bodies may capture the block passed to each and save it for body.close, so don't close the socket before we have a chance to call body.close (cherry picked from commit b72a86f66c722d56a6d77ed1d2779ace6ad103ed) Conflicts: lib/unicorn/http_server.rb test/unit/test_response.rb
Diffstat (limited to 'lib/unicorn')
-rw-r--r-- | lib/unicorn/http_response.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/unicorn/http_response.rb b/lib/unicorn/http_response.rb index 6f1cd48..f3b5a82 100644 --- a/lib/unicorn/http_response.rb +++ b/lib/unicorn/http_response.rb @@ -63,7 +63,6 @@ module Unicorn::HttpResponse end body.each { |chunk| socket.write(chunk) } - socket.close # flushes and uncorks the socket immediately ensure body.respond_to?(:close) and body.close end |