Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 17353 invoked by uid 6000); 6 Nov 1999 05:37:31 -0000 Received: (qmail 17346 invoked from network); 6 Nov 1999 05:37:29 -0000 Received: from ss04.nc.us.ibm.com (HELO 32.97.136.234) (32.97.136.234) by taz.hyperreal.org with SMTP; 6 Nov 1999 05:37:29 -0000 Received: from sashimi (unverified [32.225.143.167]) by johngalt.raleigh.ibm.com (EMWAC SMTPRS 0.83) with SMTP id ; Sat, 06 Nov 1999 00:43:11 -0500 Message-ID: <000d01bf2818$fb09c1b0$a78fe120@raleigh.ibm.com> From: "Bill Stoddard" To: References: <19991104171743.A1447@dosa.raleigh.ibm.com> <3823B9D1.576DBCB0@princeton.edu> Subject: Re: Sendfile() Date: Sat, 6 Nov 1999 00:37:07 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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 files. Bill ----- Original Message ----- From: John Zedlewski 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 >