Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 49250 invoked from network); 10 Oct 2005 16:06:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Oct 2005 16:06:58 -0000 Received: (qmail 77015 invoked by uid 500); 10 Oct 2005 16:06:45 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 76919 invoked by uid 500); 10 Oct 2005 16:06:44 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 76874 invoked by uid 99); 10 Oct 2005 16:06:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 09:06:44 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (asf.osuosl.org: transitioning domain of psusi@cfl.rr.com does not designate 209.208.122.204 as permitted sender) Received: from [209.208.122.204] (HELO momo.creolmail.org) (209.208.122.204) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Oct 2005 09:06:45 -0700 Received: from [10.1.1.207] (unknown [69.44.168.233]) by momo.creolmail.org (Postfix) with ESMTP id 467D8B3668 for ; Mon, 10 Oct 2005 12:06:20 -0400 (EDT) Message-ID: <434A917C.1020501@cfl.rr.com> Date: Mon, 10 Oct 2005 12:06:20 -0400 From: Phillip Susi User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: async write completion prototype References: <434A7D9C.80101@cfl.rr.com> <434A7FCE.6060708@force-elite.com> <434A8195.5020203@cfl.rr.com> <434A84B7.1090706@force-elite.com> <434A88F4.8030401@cfl.rr.com> <434A8AF4.5020908@turner.com> In-Reply-To: <434A8AF4.5020908@turner.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Non blocking is not async IO. It is not really possible to perform zero copy IO with non blocking IO semantics, you must have full async IO to issue multiple pending requests. Brian Akins wrote: > Phillip Susi wrote: > >> As an alternative, you can bypass the cache and do direct async IO to >> the disk with zero copies. IIRC, this is supported on linux with the >> O_DIRECT flag. Doing this though, means that you will need to handle >> caching yourself, which might not be such a good idea. Does Linux not >> support O_DIRECT on sockets? > > > Can you not just set the socket to non-blocking using O_NONBLOCK? >