close client socket after closing response body
commitb72a86f66c722d56a6d77ed1d2779ace6ad103ed
authorEric Wong <normalperson@yhbt.net>
Thu, 6 Jan 2011 06:39:03 +0000 (5 22:39 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 6 Jan 2011 06:58:18 +0000 (5 22:58 -0800)
treec074232094580831bd110f1dcce528fd69cdcd63
parent1b69686fd28347eb5c071a9b76e2939bca424f04
close client socket after closing response body

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
lib/unicorn/http_response.rb
lib/unicorn/http_server.rb
t/t0018-write-on-close.sh [new file with mode: 0755]
t/write-on-close.ru [new file with mode: 0644]
test/unit/test_response.rb