From: Zed Shaw Date: 2006-03-27T13:26:14+09:00 Subject: Re: [ANN] ruby-sendfile 0.9.1 Toby, You are calling a "rv_sys_fail" function in sendfile.c instead of rb_sys_fail. Otherwise seems to work great. I'll be adding this as a dynamic require for Mongrel so if folks have it installed it will be used in the DirHandler. Zed A. Shaw http://www.zedshaw.com/ On 3/26/06 11:59 AM, "Toby DiPasquale" wrote: > == Usage > > Here's a small example of a use of IO#sendfile. > > require 'socket' > require 'rubygems' > require 'sendfile' > > s = TCPSocket.new 'yourdomain.com', 5000 > File.open 'somefile.txt' { |f| s.sendfile f } > s.close > > See the test scripts for more examples on how to use this > module. >