response: convert source arg to path before IO.copy_stream
commit98819daf5c638fec4d20bb3960e0d3188e772ab8
authorEric Wong <e@80x24.org>
Tue, 13 Oct 2015 23:45:59 +0000 (13 23:45 +0000)
committerEric Wong <e@80x24.org>
Wed, 14 Oct 2015 20:39:32 +0000 (14 20:39 +0000)
tree74beabd854c6048a6fc1e5843155794c1e6ee6e1
parent192c9507708741237ca2906ab499bbf89ea8be8f
response: convert source arg to path before IO.copy_stream

This will allow us use the sendfile syscall under Linux on
Ruby which favor #read/#readpartial methods for non-IO objects.

This also allows us to revert changes made in
commit db790ff3531acdfa23ab290998bba29360a6782b
("sync_close: This fix breakage from Ruby-trunk r50118")
lib/rainbows/response.rb
lib/rainbows/sync_close.rb