Return-Path: Delivered-To: apmail-new-httpd-archive@apache.org Received: (qmail 46429 invoked by uid 500); 27 Mar 2000 22:09:48 -0000 Mailing-List: contact new-httpd-help@apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list new-httpd@apache.org Received: (qmail 46390 invoked from network); 27 Mar 2000 22:09:46 -0000 Date: Mon, 27 Mar 2000 14:09:45 -0800 (PST) From: Dean Gaudet Sender: Dean Gaudet To: new-httpd@apache.org Subject: Re: layered I/O (was: cvs commit: ...) In-Reply-To: Message-ID: X-comment: visit http://arctic.org/~dean/legal for information regarding copyright and disclaimer. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Sun, 26 Mar 2000, Greg Stein wrote: > I don't believe that the content-generators need to be changed AT ALL. > They would continue to call ap_rput*() as they do now. then you haven't thought on it hard enough. > The content-processors would need to change the following kind of loop: > > content-handler: > fd = open() > while 1: > data = read() > if not data: > break > process_data(data) > > process_data(data): > ... > ap_rputs(monkeyed_output) > ... > > to: > > some-hook-function: > register_processor(process_data) > > process_data(next_layer, data): > ... > ap_layer_puts(next_layer, monkeyed_output) > ... > > I don't see a big change in the content-processors either. that's a massive change to the content-processor! you've just made it so that the content-processor *can't use the stack to store any context*. all the context has to be moved to a structure which is used by each call to the process_data function. go take a look at mod_include, and tell me you can do this with no change. if so then i'll be really impressed. gah, you know -1s coming from folks who haven't worked out this problem are totally annoying. > > No, the sub-thread design is a hack just to get it to work. The > real way > this should be done, is to re-write mod_include to deal > well with > streaming data coming from the BUFF structure. > > We agree on this at least :-). This was the rest of my email comments. wow, you agree that content-processors require massive changes... above you claimed no changes would be required. Dean