From owner-freebsd-net Thu Feb 1 17:14: 1 2001 Delivered-To: freebsd-net@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 1093737B491 for ; Thu, 1 Feb 2001 17:13:44 -0800 (PST) Received: from fanf by hand.dotat.at with local (Exim 3.20 #3) id 14OUmL-000Chl-00; Fri, 02 Feb 2001 01:12:45 +0000 Date: Fri, 2 Feb 2001 01:12:45 +0000 From: Tony Finch To: Alfred Perlstein Cc: David Xu , Kris Kennaway , bsddiy , freebsd-net@FreeBSD.ORG Subject: Re: sendfile() Message-ID: <20010202011245.A70673@hand.dotat.at> References: <1217774688.20010201133139@163.net> <20010201023825.A71975@xor.obsecurity.org> <20010201180010.Q70673@hand.dotat.at> <001d01c08cb1$9c445d80$6201a8c0@William> <20010202005018.Y70673@hand.dotat.at> <20010201170214.V26076@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010201170214.V26076@fw.wintelcom.net> Organization: Covalent Technologies, Inc Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alfred Perlstein wrote: > >I was going to say the same thing, but what about the header >before a cgi response? Doesn't the webserver need to spit out >a couple of short lines before exec'ing the CGI? No. The first line of the HTTP response ("HTTP/1.1 200 OK" or whatever) depends on the headers that the CGI returns to the server (e.g. "Status: 500 Database screwed again"). >Wouldn't the socket low water mark address this though as long >as it was > size of the http header? Ideally you want it to be the same as the path MTU. I don't know a good way of finding that out in uerland though. There remains the issue of the last partial packet in a response, though: you want that to go out immediately after the rest of the data. Tony. -- f.a.n.finch fanf@covalent.net dot@dotat.at "You realize there's a government directive stating that there is no such thing as a flying saucer?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message