Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 41639 invoked from network); 10 Jun 2008 21:37:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 21:37:22 -0000 Received: (qmail 19874 invoked by uid 500); 10 Jun 2008 21:37:24 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 19524 invoked by uid 500); 10 Jun 2008 21:37:24 -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 19513 invoked by uid 99); 10 Jun 2008 21:37:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 14:37:23 -0700 X-ASF-Spam-Status: No, hits=-6.8 required=10.0 tests=RCVD_IN_DNSWL_HI,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.14.54.246] (HELO ext-nj2ut-13.online-age.net) (64.14.54.246) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 21:36:33 +0000 Received: from int-nj2ut-1.online-age.net (int-nj2ut-1.online-age.net [3.159.237.70]) by ext-nj2ut-13.online-age.net (8.13.6/8.13.6/20051114-SVVS-TLS-DNSBL) with ESMTP id m5ALZnm8007474 for ; Tue, 10 Jun 2008 17:35:49 -0400 Received: from cinmlef12.e2k.ad.ge.com (int-nj2ut-1.online-age.net [3.159.237.70]) by int-nj2ut-1.online-age.net (8.13.6/8.13.6/20050510-SVVS) with ESMTP id m5ALZmuU002966 for ; Tue, 10 Jun 2008 17:35:49 -0400 Received: from [3.187.170.117] ([3.187.170.117]) by cinmlef12.e2k.ad.ge.com with Microsoft SMTPSVC(6.0.3790.2499); Tue, 10 Jun 2008 17:35:48 -0400 Subject: sending data to output filter From: Tamas Palagyi To: modules-dev@httpd.apache.org Content-Type: text/plain Date: Tue, 10 Jun 2008 23:35:42 +0200 Message-Id: <1213133742.19578.56.camel@kismokus.e2k.ad.ge.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jun 2008 21:35:48.0497 (UTC) FILETIME=[F2AFA810:01C8CB41] X-Virus-Checked: Checked by ClamAV on apache.org Hello, When we send data to an output filter, how can I know whether all my data has been sent successfully? I am using this example code: apr_status_t rv; apr_bucket_brigade *bb; apr_bucket *b; bb = apr_brigade_create(r->pool, r->connection->bucket_alloc); b = apr_bucket_immortal_create(buf, len, bb->bucket_alloc); APR_BRIGADE_INSERT_TAIL(bb, b); APR_BRIGADE_INSERT_TAIL(bb, apr_bucket_eos_create(bb->bucket_alloc) ); rv = ap_pass_brigade(r->connection->output_filters, bb); apr_brigade_destroy(bb); If the ap_pass_brigade() returned means that all my data has been sent successfully? Is ap_pass_brigade going to block till all data sent (or gives back error)? Thanks in advance, Tamas