diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-07 08:30:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-08 07:58:59 +0000 |
commit | 13baf8bd44683a376b79c01c3abbaa71e5b86a71 (patch) | |
tree | 13f7b00b6d0fa1093b9c8b3796150750929eda5b /lib/rainbows/rev/sendfile.rb | |
parent | 9ce364b079efdb3bcef504a84e2460a9b2b4b9ad (diff) | |
download | rainbows-13baf8bd44683a376b79c01c3abbaa71e5b86a71.tar.gz |
Other concurrency models will eventually be able to use it, too.
Diffstat (limited to 'lib/rainbows/rev/sendfile.rb')
-rw-r--r-- | lib/rainbows/rev/sendfile.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rainbows/rev/sendfile.rb b/lib/rainbows/rev/sendfile.rb index 11cd114..ae0b116 100644 --- a/lib/rainbows/rev/sendfile.rb +++ b/lib/rainbows/rev/sendfile.rb @@ -1,12 +1,7 @@ # -*- encoding: binary -*- module Rainbows::Rev::Sendfile if IO.method_defined?(:sendfile_nonblock) - class F < Struct.new(:offset, :to_io) - def close - to_io.close - self.to_io = nil - end - end + F = Rainbows::StreamFile def to_sendfile(io) F[0, io] |