Skip to content

Commit

Permalink
Avoid deadlock when not closing: http://johnbintz.github.com/blog/201…
Browse files Browse the repository at this point in the history
  • Loading branch information
krukow committed Jul 31, 2012
1 parent 592ff0b commit 0837453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/m2r/rack_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def process(request)
status, headers, body = @app.call(env)
buffer = ""
body.each { |part| buffer << part }
body.close if body.respond_to?(:close)
return Response.new(status, headers, buffer)
end

Expand Down

1 comment on commit 0837453

@paneq
Copy link

@paneq paneq commented on 0837453 Nov 4, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.