Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 82248 invoked by uid 500); 24 May 2002 22:43:36 -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: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 82231 invoked from network); 24 May 2002 22:43:35 -0000 Message-ID: <3CEEC1B3.5010505@algroup.co.uk> Date: Fri, 24 May 2002 23:41:55 +0100 From: Ben Laurie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Is Apache Proxy Half-Duplex? References: <008d01c202ef$e556b760$0a01230a@KOJ> <3CEE8472.3080306@algroup.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jeff Trawick wrote: > Ben Laurie writes: > > >>Seems to me that you really want a apr_poll equivalent that works on >>bucket brigades - that would make this clean, and could be quite >>elegant (IMO). > > > What seems useful (to me) is for apr_poll() to operate on a generic > I/O handle (instead of apr_socket_t) and for the APR app to be able to > retrieve the generic I/O handle from an APR socket or pipe or > whatever. The bucket code could then be able to return a generic I/O > handle corresponding to a bucket (extend it for brigades as well). > > (For some bucket types (e.g., heap) perhaps they always appear > readable, or perhaps trying to retrieve the handle indicates that the > operation is inappropriat.) Well, you may want that under the hood, but it clearly ain't right for bucket brigades, coz the brigade itself might have data ready. I suppose write brigades will have to say no at some point. Hmm. Non-trivial. Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff