about summary refs log tree commit homepage
path: root/lib/rainbows/rev/sendfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/rev/sendfile.rb')
-rw-r--r--lib/rainbows/rev/sendfile.rb7
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]