Skip to content

Commit

Permalink
Make sure the body is closed after iteration per rack spec
Browse files Browse the repository at this point in the history
  • Loading branch information
sj26 committed Apr 7, 2012
1 parent 52315c6 commit be6b0a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rack/process/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def handle_request env
write "output"
write piece
end
body.close if body.respond_to? :close
write "done"
rescue SystemExit, Errno::EINTR
# Ignore
Expand Down

0 comments on commit be6b0a7

Please sign in to comment.