Pre-Announce : POE::Wheel::Sendfile
[email protected] (Philip Gwyn) Sat, 18 Dec 2010 12:47:23 -0500
| Newsgroups | perl.poe |
|---|---|
| Message-ID | <[email protected]> |
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.
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