Phillip Susi wrote:
On what OS? Linux? NT supports async IO on sockets rather nicely, as
does FreeBSD iirc.
The event MPM doesn't run on NT at all, only Unixes.
Yes, FreeBSD (and linux) support async_write().. But this requires that
you read the file off of disk, and into a buffer, and then copy it back
into the kernel. With a non-blocking sendfile, we can avoid all the
data copying (aka 'zero copy'), and let the kernel do everything itself.
There is currently no such thing as 'async sendfile', which would be the
perfect solution for this use case. There have been various people
mentioning it as an idea, but no one has gone out and done it.
-Paul