httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@covalent.net
Subject Re: AP_MIN_SENDFILE_BYTES
Date Fri, 02 Feb 2001 15:02:15 GMT

> > >Incidentally, does anyone know if a writev() will combine the chunks into
> > >large packets, or send each section individually??
> > 
> > The former.
> 
> Whereas using sendfile() for each chunk will generate lots of little
> packetlets... mmap()+writev() seems like the way to go, then??

Yep.  Basically, there needs to be a cut-off, so that we don't sendfile a
lot of little files.  We are much better off with a hierarchy:

read  if it's really small,
mmap or sendfile if it's a bit bigger.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message