PushIOvHelper errors

Marco d'Itri md at Linux.IT
Wed Sep 11 19:17:53 UTC 2002


On Sep 11, Russ Allbery <rra at stanford.edu> wrote:

 >It's pretty straightforward on the storage API end; just add an SMsendfile
 >routine that takes a token and a file descriptor.  Overview will be
 >trickier and isn't as obvious of a win.
It's useless, sendfile(2) is a win when you have to copy something
straight from disk to the network.
BTW, it's probably a good idea to use TCP_CORK to send out the 220 line
and the beginning of the article in the same packet.

 >The internal implementation of SMsendfile for tradspool will need to
 >account for non-wireformat articles, though.
In these situations you just use write(2) or writev(2), sendfile(2) may
actually be slower.

-- 
ciao,
Marco


More information about the inn-workers mailing list