Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 54673 invoked from network); 6 Jan 2007 23:03:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2007 23:03:28 -0000 Received: (qmail 1240 invoked by uid 500); 6 Jan 2007 23:03:35 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 1216 invoked by uid 500); 6 Jan 2007 23:03:35 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 1206 invoked by uid 99); 6 Jan 2007 23:03:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 15:03:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [216.218.255.169] (HELO champ.thecoop.net) (216.218.255.169) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 15:03:23 -0800 Received: from [192.168.1.6] (c-24-6-242-246.hsd1.ca.comcast.net [24.6.242.246]) (authenticated bits=0) by champ.thecoop.net (8.13.8/8.13.8) with ESMTP id l06N2xWc009464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 6 Jan 2007 15:03:00 -0800 Message-ID: <45A02A94.9070808@jupiterhosting.com> Date: Sat, 06 Jan 2007 15:02:44 -0800 From: Drew Bertola User-Agent: Thunderbird 1.5.0.9 (X11/20061219) MIME-Version: 1.0 To: modules-dev@httpd.apache.org Subject: Re: apr_bucket_split question... References: <459ECBFB.9070007@jupiterhosting.com> <1168115945.6705.5.camel@test.asus> In-Reply-To: <1168115945.6705.5.camel@test.asus> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.1.12 (champ.thecoop.net [216.218.255.169]); Sat, 06 Jan 2007 15:03:00 -0800 (PST) X-Virus-Scanned: ClamAV 0.88.7/2416/Fri Jan 5 20:54:14 2007 on champ.thecoop.net X-Virus-Status: Clean X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on champ.thecoop.net X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_00, DNS_FROM_RFC_ABUSE,RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL autolearn=no version=3.1.7 Joachim Zobel wrote: > Am Freitag, den 05.01.2007, 14:06 -0800 schrieb Drew Bertola: > >> My impression is that b is now the head piece (part before the split) >> and APR_BUCKET_NEXT(b) would return the tail piece. Correct? >> > > Just try. > I was trying, and doing it right. I had a small logical bug that was breaking things and finally spotted it. The difficulty there is that debugging requires so much work and the documentation isn't explicit about these types of details. So, just needed some confirmation. Nick's example in http://www.apachetutor.com/dev/brigades helped confirm the behavior. >> Also, how can I determine the length of the data held by the bucket? >> > > apr_bucket_read will tell you and it is cheap as soon as you have a heap > bucket. In your case it will be cheap on both parts of the split bucket. > > But you probably won't need the length. You just need to insert your > stuff between the to buckets. I'll leave an explanation why for my next question (rather than going off on a tangent in this thread). I'm moving beyond the basics with the next bit, so please look for it. Thanks, -- Drew