Re: Pre-Announce : POE::Wheel::Sendfile

2010-12-21 Thread Philip Gwyn

On 20-Dec-2010 Jeremy Leader wrote:
 On 12/18/2010 09:47 AM, Philip Gwyn wrote:
 It is a straight sub-class of POE::Wheel::Sendfile that can use
 Sys::Sendfile to efficiently send a file over a network connection.
 
 I believe you meant it's a straight sub-class of POE::Wheel::ReadWrite 

That is of course exactly what I mean.  Last week was strange.

-Philip



Re: Pre-Announce : POE::Wheel::Sendfile

2010-12-20 Thread Jeremy Leader

On 12/18/2010 09:47 AM, Philip Gwyn wrote:

Greeting POElings,

Following my work with Sys::Sendfile in the HTTP component, I decided that it
would be useful enough on it's own.  So I've concocted POE::Wheel::Sendfile.

It is a straight sub-class of POE::Wheel::Sendfile that can use Sys::Sendfile
to efficiently send a file over a network connection.


I believe you meant it's a straight sub-class of POE::Wheel::ReadWrite  I 
noticed the same typo in your POD description section.


--
Jeremy Leader
jlea...@oversee.net


The initial draft is currently on the CPAN:

 http://search.cpan.org/perldoc?POE::Wheel::Sendfile

TODO:
  - tests for the fall-back mechanism;
  - test with each loop, just in case;
  - POE::Wheel::Sendfile could be installed even though Sys::Sendfile isn't.  I
need a good way to signify this in Makefile.PL.

-Philip