Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #88 from digitalextremist/io-work-arou
Browse files Browse the repository at this point in the history
Patch to solve #87
  • Loading branch information
tarcieri committed Sep 12, 2013
2 parents 8c66e4a + 9f349f4 commit 6b9ecf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/reel/response_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def handle_response(response)
# FIXME: should use Celluloid::IO.copy_stream and allow these
# calls to be multiplexed through Celluloid::IO's reactor
# Until then we need a thread for each of these responses
Celluloid.defer { IO.copy_stream(response.body, @socket) }
Celluloid.defer { IO.copy_stream(response.body, @socket.to_io) }
# @socket currently not being converted to appropriate IO object automatically.
# Convert the object in advance to still enjoy IO.copy_stream coverage.
end
ensure
response.body.close
Expand Down

0 comments on commit 6b9ecf0

Please sign in to comment.