Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 79833 invoked from network); 28 Jan 2005 00:45:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jan 2005 00:45:00 -0000 Received: (qmail 76873 invoked by uid 500); 28 Jan 2005 00:44:59 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 76763 invoked by uid 500); 28 Jan 2005 00:44:59 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 76750 invoked by uid 99); 28 Jan 2005 00:44:59 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of bojan@rexursive.com designates 218.214.6.102 as permitted sender) Received: from beauty.rexursive.com (HELO beauty.rexursive.com) (218.214.6.102) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 27 Jan 2005 16:44:58 -0800 Received: by beauty.rexursive.com (Postfix, from userid 52) id C56581E802; Fri, 28 Jan 2005 11:44:53 +1100 (EST) Received: from cache4.syd.ops.aspac.uu.net (cache4.syd.ops.aspac.uu.net [203.166.96.238]) by imp.rexursive.com (IMP) with HTTP for ; Fri, 28 Jan 2005 11:44:53 +1100 Message-ID: <1106873093.41f98b0548524@imp.rexursive.com> Date: Fri, 28 Jan 2005 11:44:53 +1100 From: Bojan Smojver To: Joe Schaefer Cc: apreq-dev@httpd.apache.org Subject: Re: [multi-env] privatizing apreq_request_t and apreq_jar_t References: <20050112221409.GA20209@roonstrasse.net> <876520kmfq.fsf@gemini.sunstarsys.com> <87d5vsc20f.fsf@gemini.sunstarsys.com> <20050126082026.GB2127@roonstrasse.net> <87ekg694ff.fsf@gemini.sunstarsys.com> <20050127175230.GA15384@roonstrasse.net> <87acqu91d6.fsf@gemini.sunstarsys.com> <1106869171.41f97bb340220@imp.rexursive.com> <87oefa77cf.fsf@gemini.sunstarsys.com> In-Reply-To: <87oefa77cf.fsf@gemini.sunstarsys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Quoting Joe Schaefer : > > while((status=ap_get_brigade(r->input_filters,brigade, > > AP_MODE_READBYTES,APR_BLOCK_READ, > > HUGE_STRING_LEN))!=APR_SUCCESS) > > ; /* nothing */ > > > > Should actually do the work that ap_discard_request_body() does, > > right? More or less, I mean. > > More or less. Actually the loop you wrote should segfault, because it's > illegal to pass a non-empty brigade to ap_get_brigade. I didn't include the part of code that creates an empty brigade. That's a bit further up :-) > I'd say it's the recommended approach for response handlers > (the only folks truly authorized to throw away the post data). > Everything else (auth handlers, output filters, etc.) should > just ignore the spooling issues and just let libapreq2 work > its magic. OK, thanks. -- Bojan