httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <>
Subject Re: Sendfile()
Date Sat, 06 Nov 1999 05:37:07 GMT
Check out ap_send_fd in http_protocol.c in the Apache 2.0 repository for the
most recent stuff. It needs more work but it is enough to give you an idea.
The notable features are the feature macro, HAVE_SENDFILE, in ap_send_fd
that will call a sendfile API if the feature macro is defined on that
platform and parameters on the apache sendfile API to include an iovec of
headers a file descriptor (actually a file_t) of the file to send and an
iovec of trailer data.

Today, we send header data seperately and flush the buffer before calling
sendfile. Not optimal, but it helps performance on Windows NT for largish

----- Original Message -----
From: John Zedlewski <zedlwski@Princeton.EDU>
To: <>
Sent: Saturday, November 06, 1999 12:17 AM
Subject: Sendfile()

> I just joined this list recently and caught the tail end of a discussion
> about a patch to use the sendfile() API in Linux and other systems in
> Apache.  I'd been working on a similar adjustment and, while I had it
> working, I wasn't really happy with it.  Could somebody send me a copy of
> that patch so I could play around with it and see the approach it takes?
> I'd really appreciate it.
> Thanks!
> --JRZ

View raw message