summaryrefslogtreecommitdiffstats
path: root/kerberos5/tools
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2004-02-01 07:56:44 +0000
committersilby <silby@FreeBSD.org>2004-02-01 07:56:44 +0000
commita4c32edec5d4168f026935747d80ffd7e14b341e (patch)
tree756eb5d016933d260c886eb87ddce614194e5d5f /kerberos5/tools
parent371f8838d17c51a366148891b8df059a38604325 (diff)
downloadFreeBSD-src-a4c32edec5d4168f026935747d80ffd7e14b341e.zip
FreeBSD-src-a4c32edec5d4168f026935747d80ffd7e14b341e.tar.gz
Rewrite sendfile's header support so that headers are now sent in the first
packet along with data, instead of in their own packet. When serving files of size (packetsize - headersize) or smaller, this will result in one less packet crossing the network. Quick testing with thttpd and http_load has shown a noticeable performance improvement in this case (350 vs 330 fetches per second.) Included in this commit are two support routines, iov_to_uio, and m_uiotombuf; these routines are used by sendfile to construct the header mbuf chain that will be linked to the rest of the data in the socket buffer.
Diffstat (limited to 'kerberos5/tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud